From 495f0991f09936a9e586bb1564a484b288360250 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9=20Focone?= Date: Fri, 10 Apr 2020 18:13:07 +0200 Subject: [PATCH] Fix NullPointerException sur les ArmorStand en 1.15.2 (Issue #37) (#38) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fix NullPointer sur les ArmorStand lors du vote (bug rencontré en 1.15.2) --- src/main/java/fr/leomelki/loupgarou/classes/LGVote.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/fr/leomelki/loupgarou/classes/LGVote.java b/src/main/java/fr/leomelki/loupgarou/classes/LGVote.java index 9a3ce26..b352131 100644 --- a/src/main/java/fr/leomelki/loupgarou/classes/LGVote.java +++ b/src/main/java/fr/leomelki/loupgarou/classes/LGVote.java @@ -94,7 +94,7 @@ public class LGVote { private static DataWatcherObject> az; private static DataWatcherObject aA; private static DataWatcherObject T; - private static final EntityArmorStand eas = new EntityArmorStand(null, 0, 0, 0); + private static final EntityArmorStand eas = new EntityArmorStand(((CraftWorld)Bukkit.getWorlds().get(0)).getHandle(), 0, 0, 0); static { try { Field f = Entity.class.getDeclaredField("az");