Fix CreativeTab assignment (Fabric)
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -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
|
||||||
|
@@ -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
|
||||||
|
Reference in New Issue
Block a user