Fix sand paper is sometimes stackable

This commit is contained in:
Snownee 2020-05-18 22:29:25 +08:00
parent 21cdea67f6
commit 4a7ad75cd0

View file

@ -33,7 +33,7 @@ import net.minecraftforge.common.util.FakePlayer;
public class SandPaperItem extends Item implements IHaveCustomItemModel { public class SandPaperItem extends Item implements IHaveCustomItemModel {
public SandPaperItem(Properties properties) { public SandPaperItem(Properties properties) {
super(properties); super(properties.maxDamage(8));
} }
@Override @Override
@ -173,21 +173,6 @@ public class SandPaperItem extends Item implements IHaveCustomItemModel {
return 32; return 32;
} }
@Override
public int getItemStackLimit(ItemStack stack) {
return 1;
}
@Override
public boolean isDamageable() {
return true;
}
@Override
public int getMaxDamage(ItemStack stack) {
return 8;
}
@Override @Override
public int getItemEnchantability() { public int getItemEnchantability() {
return 5; return 5;