compile fixes
This commit is contained in:
parent
af2e3abf87
commit
3606096fbb
11 changed files with 119 additions and 19 deletions
|
@ -14,7 +14,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
}
|
||||
+
|
||||
+ // Paper - start - living entity allow attribute registration
|
||||
+ public void registerAttribute(Attribute attributeBase) {
|
||||
+ public void registerAttribute(Holder<Attribute> attributeBase) {
|
||||
+ AttributeInstance attributeModifiable = new AttributeInstance(attributeBase, AttributeInstance::getAttribute);
|
||||
+ attributes.put(attributeBase, attributeModifiable);
|
||||
+ }
|
||||
|
@ -33,7 +33,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ @Override
|
||||
+ public void registerAttribute(Attribute attribute) {
|
||||
+ Preconditions.checkArgument(attribute != null, "attribute");
|
||||
+ handle.registerAttribute(CraftAttribute.bukkitToMinecraft(attribute));
|
||||
+ handle.registerAttribute(CraftAttribute.bukkitToMinecraftHolder(attribute));
|
||||
+ }
|
||||
+ // Paper end - living entity allow attribute registration
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue