Skip to content

Commit 33cb3de

Browse files
committed
Fix various items that are not supposed to stack from stacking (#8109)
1 parent 4015021 commit 33cb3de

File tree

4 files changed

+6
-4
lines changed

4 files changed

+6
-4
lines changed

src/main/java/mekanism/common/item/gear/ItemFreeRunners.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,9 @@ public ItemFreeRunners(Properties properties) {
5353
}
5454

5555
public ItemFreeRunners(Holder<ArmorMaterial> material, Properties properties) {
56-
super(material, ArmorItem.Type.BOOTS, properties.rarity(Rarity.RARE).setNoRepair().component(MekanismDataComponents.FREE_RUNNER_MODE, FreeRunnerMode.NORMAL));
56+
super(material, ArmorItem.Type.BOOTS, properties.rarity(Rarity.RARE).setNoRepair().stacksTo(1)
57+
.component(MekanismDataComponents.FREE_RUNNER_MODE, FreeRunnerMode.NORMAL)
58+
);
5759
}
5860

5961
@Override

src/main/java/mekanism/common/item/gear/ItemHazmatSuitArmor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
public class ItemHazmatSuitArmor extends ArmorItem implements ICapabilityAware {
1717

1818
public ItemHazmatSuitArmor(Type armorType, Properties properties) {
19-
super(MekanismArmorMaterials.HAZMAT, armorType, properties.rarity(Rarity.UNCOMMON));
19+
super(MekanismArmorMaterials.HAZMAT, armorType, properties.rarity(Rarity.UNCOMMON).stacksTo(1));
2020
}
2121

2222
public static double getShieldingByArmor(Type type) {

src/main/java/mekanism/common/item/gear/ItemMekaTool.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ public class ItemMekaTool extends ItemEnergized implements IRadialModuleContaine
9393
private final Int2ObjectMap<AttributeCache> attributeCaches = new Int2ObjectArrayMap<>(ModuleAttackAmplificationUnit.AttackDamage.values().length);
9494

9595
public ItemMekaTool(Properties properties) {
96-
super(IModuleHelper.INSTANCE.applyModuleContainerProperties(properties.rarity(Rarity.EPIC).setNoRepair()
96+
super(IModuleHelper.INSTANCE.applyModuleContainerProperties(properties.rarity(Rarity.EPIC).setNoRepair().stacksTo(1)
9797
.component(DataComponents.TOOL, new Tool(List.of(
9898
Tool.Rule.deniesDrops(MekanismTags.Blocks.INCORRECT_FOR_MEKA_TOOL),
9999
new Tool.Rule(new AnyHolderSet<>(BuiltInRegistries.BLOCK.asLookup()), Optional.empty(), Optional.of(true))

src/main/java/mekanism/common/item/gear/ItemScubaMask.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
public class ItemScubaMask extends ItemSpecialArmor {
1212

1313
public ItemScubaMask(Properties properties) {
14-
super(MekanismArmorMaterials.SCUBA_GEAR, ArmorItem.Type.HELMET, properties.rarity(Rarity.RARE).setNoRepair());
14+
super(MekanismArmorMaterials.SCUBA_GEAR, ArmorItem.Type.HELMET, properties.rarity(Rarity.RARE).setNoRepair().stacksTo(1));
1515
}
1616

1717
@Override

0 commit comments

Comments
 (0)