mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-23 09:37:35 +01:00
Update CustomEntityRegistry to allow other plugins to override classees
This commit is contained in:
parent
83413cb1b8
commit
0fa0d29f17
@ -21,12 +21,17 @@ public class CustomEntityRegistry extends RegistryMaterials {
|
||||
}
|
||||
|
||||
@Override
|
||||
public int a(Object key) {
|
||||
if (this.entityIds.containsKey(key)) {
|
||||
return this.entityIds.get(key);
|
||||
public void a(int code, Object key, Object v) {
|
||||
put(code, (MinecraftKey) key, (Class<? extends Entity>) v);
|
||||
}
|
||||
|
||||
return this.wrapped.a((Class<? extends Entity>) key);
|
||||
@Override
|
||||
public int a(Object key) {
|
||||
if (entityIds.containsKey(key)) {
|
||||
return entityIds.get(key);
|
||||
}
|
||||
|
||||
return wrapped.a((Class<? extends Entity>) key);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user