mirror of
https://github.com/songoda/EpicEnchants.git
synced 2025-01-18 14:11:34 +01:00
Added lava damage.
This commit is contained in:
parent
eca8e186b4
commit
c2383d9644
@ -20,6 +20,7 @@ public enum TriggerType {
|
||||
EXPLOSION_DAMAGE,
|
||||
FALL_DAMAGE,
|
||||
FIRE_DAMAGE,
|
||||
LAVA_DAMAGE,
|
||||
POISON_DAMAGE,
|
||||
|
||||
HELD_ITEM,
|
||||
|
@ -103,6 +103,9 @@ public class EntityListener implements Listener {
|
||||
case FIRE_TICK:
|
||||
instance.getEnchantUtils().handlePlayer(((Player) event.getEntity()), null, event, FIRE_DAMAGE);
|
||||
break;
|
||||
case LAVA:
|
||||
instance.getEnchantUtils().handlePlayer(((Player) event.getEntity()), null, event, LAVA_DAMAGE);
|
||||
break;
|
||||
case BLOCK_EXPLOSION:
|
||||
case ENTITY_EXPLOSION:
|
||||
instance.getEnchantUtils().handlePlayer(((Player) event.getEntity()), null, event, EXPLOSION_DAMAGE);
|
||||
|
Loading…
Reference in New Issue
Block a user