SteamWar/FightSystem
Archiviert
13
1

Fix TNTPrimed
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Lixfel 2022-04-01 12:22:45 +02:00
Ursprung c36808b5b8
Commit bb73d9ad78

Datei anzeigen

@ -110,7 +110,7 @@ public class Recording implements Listener {
}, 1, 1); }, 1, 1);
} }
private static final Class<?> primedTnt = Reflection.getClass("{nms.world.entity}.EntityTNTPrimed"); private static final Class<?> primedTnt = Reflection.getClass("{nms.world.entity.item}.EntityTNTPrimed");
private static final Reflection.MethodInvoker getBukkitEntity = Reflection.getTypedMethod(Reflection.getClass("{nms.world.entity}.Entity"), "getBukkitEntity", null); private static final Reflection.MethodInvoker getBukkitEntity = Reflection.getTypedMethod(Reflection.getClass("{nms.world.entity}.Entity"), "getBukkitEntity", null);
private void trackEntity(Object e) { private void trackEntity(Object e) {
Entity entity = (Entity) getBukkitEntity.invoke(e); Entity entity = (Entity) getBukkitEntity.invoke(e);