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