Replace hasKey with hasUniqueId where appropriate, should fix some weirdness with a few spells

This commit is contained in:
Electroblob
2018-02-22 13:32:09 +00:00
parent a567281183
commit f54b92be16
4 changed files with 5 additions and 5 deletions
@@ -103,7 +103,7 @@ public class LightningBolt extends Spell {
@SubscribeEvent
public static void onEntityStruckByLightningEvent(EntityStruckByLightningEvent event){
if(event.getLightning().getEntityData() != null && event.getLightning().getEntityData().hasKey(NBT_KEY)){
if(event.getLightning().getEntityData() != null && event.getLightning().getEntityData().hasUniqueId(NBT_KEY)){
EntityPlayer player = (EntityPlayer)WizardryUtilities.getEntityByUUID(event.getLightning().world,
event.getLightning().getEntityData().getUniqueId("summoningPlayer"));