ItsTheRuski Posted September 29, 2013 Posted September 29, 2013 How would I check when a potion effect that is on the player has ended. If I use myPotionEffect.duration == 0, it only works one time. After the potion effect is re-applied, the duration still reads 0. Quote
ItsTheRuski Posted September 29, 2013 Author Posted September 29, 2013 Throgh numerous if's, else if's, and print statements, I am noticing that the entity.getActivePotionEffect(myPotion) returns null after the first time. I want to be able to check for my potion effect multiple times. Does it make any difference if my call to entity.getActivePotionEffect(myPotion) is in an Forge Hooks class that uses LivingUpdateEvent? Quote
ItsTheRuski Posted September 29, 2013 Author Posted September 29, 2013 What do you mean server side? Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.