This is my code:
@SubscribeEvent(priority=EventPriority.LOWEST)
public void onDimensionChange(PlayerEvent.PlayerChangedDimensionEvent event) {
LogManager.getLogger("##NAME##").info("PlayerChangedDimensionEvent!");
}
The event gets fired when a player enters the End just fine but when he jumps in the portal after killing the dragon there's no message in the log. What am I doing wrong?
//EDIT: This one works:
@SubscribeEvent(priority=EventPriority.LOWEST)
public void onDimensionChange(EntityTravelToDimensionEvent event) {
if(event.getEntity() instanceof EntityPlayer)
LogManager.getLogger("##NAME##").info("PlayerChangedDimensionEvent!");
}
So I guess this is a Forge bug?