Clear status effects when entering limbo

This commit is contained in:
StevenRS11 2014-01-19 03:21:34 -05:00
parent 439c13cc9f
commit 8b108688f1

View file

@ -100,6 +100,8 @@ public class EventHookContainer
Point4D destination = new Point4D((int) (coords.posX+entity.posX), coords.posY, (int) (coords.posZ+entity.posZ ), mod_pocketDim.properties.LimboDimensionID); Point4D destination = new Point4D((int) (coords.posX+entity.posX), coords.posY, (int) (coords.posZ+entity.posZ ), mod_pocketDim.properties.LimboDimensionID);
DDTeleporter.teleportEntity(player, destination, false); DDTeleporter.teleportEntity(player, destination, false);
player.setHealth(player.getMaxHealth()); player.setHealth(player.getMaxHealth());
player.extinguish();
player.clearActivePotions();
event.setCanceled(true); event.setCanceled(true);
return false; return false;
} }