mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-03 21:52:05 -07:00
fix asset id
This commit is contained in:
@@ -1376,8 +1376,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ }
|
||||
+
|
||||
+ @Override
|
||||
+ public Builder assetId(final @Nullable Key model) {
|
||||
+ this.assetId = Optional.ofNullable(model)
|
||||
+ public Builder assetId(final @Nullable Key assetId) {
|
||||
+ this.assetId = Optional.ofNullable(assetId)
|
||||
+ .map(key -> PaperAdventure.asVanilla(EquipmentAssets.ROOT_ID, key));
|
||||
+
|
||||
+ return this;
|
||||
@@ -1422,7 +1422,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ new net.minecraft.world.item.equipment.Equippable(
|
||||
+ this.equipmentSlot,
|
||||
+ this.equipSound,
|
||||
+ null, // TODO
|
||||
+ this.assetId,
|
||||
+ this.cameraOverlay,
|
||||
+ this.allowedEntities,
|
||||
+ this.dispensable,
|
||||
|
Reference in New Issue
Block a user