living entity allow attribute registration
This commit is contained in:
@@ -775,6 +775,13 @@ public class CraftLivingEntity extends CraftEntity implements LivingEntity {
|
||||
return this.getHandle().craftAttributes.getAttribute(attribute);
|
||||
}
|
||||
|
||||
// Paper start - living entity allow attribute registration
|
||||
@Override
|
||||
public void registerAttribute(Attribute attribute) {
|
||||
getHandle().craftAttributes.registerAttribute(attribute);
|
||||
}
|
||||
// Paper end - living entity allow attribute registration
|
||||
|
||||
@Override
|
||||
public void setAI(boolean ai) {
|
||||
if (this.getHandle() instanceof Mob) {
|
||||
|
||||
Reference in New Issue
Block a user