Fix NPE thrown on player death event
This commit is contained in:
parent
c5abedc89b
commit
19ab2cdab1
2
pom.xml
2
pom.xml
@ -4,7 +4,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>nl.pim16aap2</groupId>
|
<groupId>nl.pim16aap2</groupId>
|
||||||
<artifactId>ArmoredElytra</artifactId>
|
<artifactId>ArmoredElytra</artifactId>
|
||||||
<version>2.4.10</version>
|
<version>2.4.12</version>
|
||||||
|
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
|
@ -511,8 +511,8 @@ public class EventHandlers implements Listener
|
|||||||
public void onEquip(ArmorEquipEvent e)
|
public void onEquip(ArmorEquipEvent e)
|
||||||
{
|
{
|
||||||
if (!e.getType().equals(ArmorType.CHESTPLATE) ||
|
if (!e.getType().equals(ArmorType.CHESTPLATE) ||
|
||||||
!e.getNewArmorPiece().getType().equals(Material.ELYTRA) ||
|
e.getNewArmorPiece() == null ||
|
||||||
e.getNewArmorPiece() == null)
|
!e.getNewArmorPiece().getType().equals(Material.ELYTRA) )
|
||||||
return;
|
return;
|
||||||
|
|
||||||
ArmorTier armorTier = nbtEditor.getArmorTier(e.getNewArmorPiece());
|
ArmorTier armorTier = nbtEditor.getArmorTier(e.getNewArmorPiece());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user