Fix CreativeTab assignment (Fabric)

This commit is contained in:
2023-03-19 15:56:12 +02:00
parent 8bb3e0c0a9
commit da2d3da484
3 changed files with 3 additions and 3 deletions

View File

@@ -17,7 +17,7 @@ public class CandleInAJar extends Item {
public CandleInAJar() { public CandleInAJar() {
super(new Properties().stacksTo(1)); super(new Properties().stacksTo(1));
if (Platform.LOADER.isModLoaded("shimmer")) { if (Platform.LOADER.isModLoaded("shimmer")) {
CreativeTabRegistry.setCreativeTab(CommonRegistration.LIGHTS_TAB, HLItems.CANDLE_IN_A_JAR); CreativeTabRegistry.setCreativeTab(CommonRegistration.LIGHTS_TAB, () -> this);
} }
} }

View File

@@ -13,7 +13,7 @@ public class LighterTool extends Item {
public LighterTool() { public LighterTool() {
super(new Properties().stacksTo(1)/*.tab(CommonRegistration.LIGHTS_TAB)*/.durability(20)); super(new Properties().stacksTo(1)/*.tab(CommonRegistration.LIGHTS_TAB)*/.durability(20));
CreativeTabRegistry.setCreativeTab(CommonRegistration.LIGHTS_TAB, HLItems.TORCH_TOOL); CreativeTabRegistry.setCreativeTab(CommonRegistration.LIGHTS_TAB, () -> this);
} }
@Override @Override

View File

@@ -25,7 +25,7 @@ public class WirelessBattery extends Item implements SwitchModule {
public WirelessBattery() { public WirelessBattery() {
super(new Properties().stacksTo(1)); super(new Properties().stacksTo(1));
CreativeTabRegistry.setCreativeTab(CommonRegistration.MACHINES_TAB, HLItems.WIRELESS_BATTERY); CreativeTabRegistry.setCreativeTab(CommonRegistration.MACHINES_TAB, () -> this);
} }
@Override @Override