Disable pixie event handler for now

This commit is contained in:
Vincent Lee committed 2020-07-03 21:27:59 -05:00
1 parent ac7d284818
commit 4c3097b85e
1 file changed
+2
@@ -83,6 +83,7 @@ public final class PixieHandler {
public static void onDamageTaken(LivingHurtEvent event) {
if (!event.getEntityLiving().world.isRemote && event.getEntityLiving() instanceof PlayerEntity && event.getSource().getTrueSource() instanceof LivingEntity) {
PlayerEntity player = (PlayerEntity) event.getEntityLiving();
/* todo unimpl
double chance = player.getAttribute(PIXIE_SPAWN_CHANCE).getValue();
ItemStack sword = PlayerHelper.getFirstHeldItem(player, s -> s.getItem() == ModItems.elementiumSword);
@@ -104,6 +105,7 @@ public final class PixieHandler {
SpawnReason.EVENT, null, null);
player.world.addEntity(pixie);
}
*/
}
}
}