mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-10-05 10:57:27 +02:00
Fix EntityTypes usage, fixes #239
This commit is contained in:
parent
f64b40ad02
commit
5292425c9f
@ -666,7 +666,7 @@ public class NMS {
|
||||
try {
|
||||
Field field = getField(EntityTypes.class, "f");
|
||||
ENTITY_CLASS_TO_INT = (Map<Class<?>, Integer>) field.get(null);
|
||||
field = getField(EntityTypes.class, "c");
|
||||
field = getField(EntityTypes.class, "d");
|
||||
ENTITY_CLASS_TO_NAME = (Map<Class<?>, String>) field.get(null);
|
||||
} catch (Exception e) {
|
||||
Messaging.logTr(Messages.ERROR_GETTING_ID_MAPPING, e.getMessage());
|
||||
|
Loading…
Reference in New Issue
Block a user