Fix NullPointerException sur les ArmorStand en 1.15.2 (Issue #37) (#38)

Fix NullPointer sur les ArmorStand lors du vote (bug rencontré en 1.15.2)
This commit is contained in:
Timothé Focone 2020-04-10 18:13:07 +02:00 committed by GitHub
parent 61095be724
commit 495f0991f0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -94,7 +94,7 @@ public class LGVote {
private static DataWatcherObject<Optional<IChatBaseComponent>> az;
private static DataWatcherObject<Boolean> aA;
private static DataWatcherObject<Byte> 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");