正确保存M18烟雾弹烟雾颜色
This commit is contained in:
parent
b8db249e5d
commit
f0642bb279
1 changed files with 3 additions and 1 deletions
|
@ -35,7 +35,9 @@ public class M18SmokeGrenade extends Item implements ProjectileItem {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setColor(ItemStack stack, int color) {
|
public void setColor(ItemStack stack, int color) {
|
||||||
NBTTool.getTag(stack).putInt(TAG_COLOR, color);
|
var tag = NBTTool.getTag(stack);
|
||||||
|
tag.putInt(TAG_COLOR, color);
|
||||||
|
NBTTool.saveTag(stack, tag);
|
||||||
}
|
}
|
||||||
|
|
||||||
public int getColor(ItemStack stack) {
|
public int getColor(ItemStack stack) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue