mirror of
https://github.com/RoBaertschi/EnvironmentTech.git
synced 2025-04-19 23:03:28 +00:00
remove DEBUG, as it is not used
This commit is contained in:
parent
8fb9ee31d9
commit
336c9099ad
@ -7,7 +7,6 @@ import net.neoforged.bus.api.SubscribeEvent;
|
|||||||
import net.neoforged.fml.ModContainer;
|
import net.neoforged.fml.ModContainer;
|
||||||
import net.neoforged.fml.common.Mod;
|
import net.neoforged.fml.common.Mod;
|
||||||
import net.neoforged.fml.config.ModConfig;
|
import net.neoforged.fml.config.ModConfig;
|
||||||
import net.neoforged.fml.loading.FMLLoader;
|
|
||||||
import net.neoforged.neoforge.common.NeoForge;
|
import net.neoforged.neoforge.common.NeoForge;
|
||||||
import net.neoforged.neoforge.event.RegisterCommandsEvent;
|
import net.neoforged.neoforge.event.RegisterCommandsEvent;
|
||||||
import net.neoforged.neoforge.event.tick.PlayerTickEvent;
|
import net.neoforged.neoforge.event.tick.PlayerTickEvent;
|
||||||
@ -23,11 +22,9 @@ import robaertschi.environmenttech.level.item.ETItems;
|
|||||||
import robaertschi.environmenttech.level.particle.ETParticles;
|
import robaertschi.environmenttech.level.particle.ETParticles;
|
||||||
import robaertschi.environmenttech.menu.ETMenus;
|
import robaertschi.environmenttech.menu.ETMenus;
|
||||||
|
|
||||||
@SuppressWarnings("unused")
|
|
||||||
@Mod(EnvironmentTech.MODID)
|
@Mod(EnvironmentTech.MODID)
|
||||||
public class EnvironmentTech
|
public class EnvironmentTech
|
||||||
{
|
{
|
||||||
public static final boolean DEBUG;
|
|
||||||
|
|
||||||
public static final String MODID = "environmenttech";
|
public static final String MODID = "environmenttech";
|
||||||
public static final Logger LOGGER = LogUtils.getLogger();
|
public static final Logger LOGGER = LogUtils.getLogger();
|
||||||
@ -36,14 +33,6 @@ public class EnvironmentTech
|
|||||||
return new ResourceLocation(MODID, name);
|
return new ResourceLocation(MODID, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
static {
|
|
||||||
// Why a static block? Because I can.
|
|
||||||
|
|
||||||
// Enable debugging Tools and Screen
|
|
||||||
// TODO: Add a config entry for modpack devs and so on.
|
|
||||||
DEBUG = !FMLLoader.isProduction();
|
|
||||||
}
|
|
||||||
|
|
||||||
// The constructor for the mod class is the first code that is run when your mod is loaded.
|
// The constructor for the mod class is the first code that is run when your mod is loaded.
|
||||||
// FML will recognize some parameter types like IEventBus or ModContainer and pass them in automatically.
|
// FML will recognize some parameter types like IEventBus or ModContainer and pass them in automatically.
|
||||||
public EnvironmentTech(IEventBus modEventBus, ModContainer modContainer)
|
public EnvironmentTech(IEventBus modEventBus, ModContainer modContainer)
|
||||||
|
@ -23,13 +23,6 @@ import robaertschi.environmenttech.menu.ETMenus;
|
|||||||
@EventBusSubscriber(bus = EventBusSubscriber.Bus.MOD)
|
@EventBusSubscriber(bus = EventBusSubscriber.Bus.MOD)
|
||||||
public class ETClient {
|
public class ETClient {
|
||||||
|
|
||||||
public static final Lazy<KeyMapping> OPEN_DEBUG_MENU = Lazy.of(() -> new KeyMapping(
|
|
||||||
"key.environmenttech.open_debug_menu",
|
|
||||||
InputConstants.Type.KEYSYM,
|
|
||||||
GLFW.GLFW_KEY_U,
|
|
||||||
"key.categories.environmenttech"
|
|
||||||
));
|
|
||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public static void clientSetup(FMLClientSetupEvent event) {
|
public static void clientSetup(FMLClientSetupEvent event) {
|
||||||
event.enqueueWork(() -> ItemProperties.register(
|
event.enqueueWork(() -> ItemProperties.register(
|
||||||
@ -56,8 +49,5 @@ public class ETClient {
|
|||||||
|
|
||||||
@SubscribeEvent
|
@SubscribeEvent
|
||||||
public static void registerBindings(RegisterKeyMappingsEvent event) {
|
public static void registerBindings(RegisterKeyMappingsEvent event) {
|
||||||
if (EnvironmentTech.DEBUG) {
|
|
||||||
event.register(OPEN_DEBUG_MENU.get());
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user