mirror of
https://github.com/Xiao-MoMi/Custom-Crops.git
synced 2025-12-25 18:09:28 +00:00
Fix appearance
This commit is contained in:
@@ -163,6 +163,9 @@ public class WateringCanConfig extends AbstractEventItem implements WateringCan
|
||||
if (maxDurability != 0) {
|
||||
nbtItem.setInteger("Damage", (int) (maxDurability * (((double) storage - water) / storage)));
|
||||
}
|
||||
if (appearanceMap.containsKey(water)) {
|
||||
nbtItem.setInteger("CustomModelData", appearanceMap.get(water));
|
||||
}
|
||||
itemStack.setItemMeta(nbtItem.getItem().getItemMeta());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user