Add entity source to PotionAddedEvent (#8147)

This commit is contained in:
ChampionAsh5357 authored and GitHub committed 2021-10-14 20:13:18 -07:00
1 parent e9f8acd191
commit 827ca83cfd
3 files changed
+23 -3

No files matched your search

@@ -53,7 +53,7 @@ public class PotionEventTest
public static void onPotionAdded(PotionEvent.PotionAddedEvent event)
{
if (!event.getEntity().getCommandSenderWorld().isClientSide)
LOGGER.info("{} has a new PotionEffect {}, the old one was {}", event.getEntityLiving(), event.getPotionEffect(), event.getOldPotionEffect());
LOGGER.info("{} has a new PotionEffect {} from {}, the old one was {}", event.getEntityLiving(), event.getPotionEffect(), event.getPotionSource(), event.getOldPotionEffect());
}
@SubscribeEvent