mirror of
https://github.com/GTNewHorizons/Chisel.git
synced 2026-11-16 18:55:06 +00:00
Merge branch 'dev' into antiblocks
This commit is contained in:
commit
bbc33601f8
5 files changed
+11
-19
No files matched your search
@@ -54,7 +54,7 @@ import java.util.List;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
|
||||
@Mod(modid = Chisel.MOD_ID, name = Chisel.MOD_NAME, version = Chisel.VERSION, guiFactory = "com.cricketcraft.chisel.client.gui.GuiFactory", dependencies = "after:ForgeMultipart;after:Thaumcraft")
|
||||
@Mod(modid = Chisel.MOD_ID, name = Chisel.MOD_NAME, version = Chisel.VERSION, guiFactory = "com.cricketcraft.chisel.client.gui.GuiFactory", dependencies = "after:ForgeMultipart;after:Thaumcraft;after:appliedenergistics2;after:Railcraft")
|
||||
public class Chisel {
|
||||
|
||||
public static final List<String> modsSupported = new ArrayList<String>();
|
||||
|
||||
@@ -2339,26 +2339,21 @@ public enum Features {
|
||||
;
|
||||
|
||||
public static void init() {
|
||||
loadBlocks(true);
|
||||
loadItems(true);
|
||||
loadRecipes();
|
||||
}
|
||||
|
||||
private static void loadBlocks(boolean init) {
|
||||
private static void loadBlocks() {
|
||||
for (Features f : values()) {
|
||||
if (f.enabled() && f.shouldLoad(init)) {
|
||||
if (f.enabled()) {
|
||||
f.addBlocks();
|
||||
}
|
||||
}
|
||||
|
||||
if (!init) {
|
||||
Chisel.proxy.registerTileEntities();
|
||||
}
|
||||
Chisel.proxy.registerTileEntities();
|
||||
}
|
||||
|
||||
private static void loadItems(boolean init) {
|
||||
private static void loadItems() {
|
||||
for (Features f : values()) {
|
||||
if (f.enabled() && f.shouldLoad(init)) {
|
||||
if (f.enabled()) {
|
||||
f.addItems();
|
||||
}
|
||||
}
|
||||
@@ -2381,8 +2376,8 @@ public enum Features {
|
||||
}
|
||||
|
||||
public static void preInit() {
|
||||
loadBlocks(false);
|
||||
loadItems(false);
|
||||
loadBlocks();
|
||||
loadItems();
|
||||
}
|
||||
|
||||
private Features parent;
|
||||
@@ -2432,10 +2427,6 @@ public enum Features {
|
||||
return requiredMod;
|
||||
}
|
||||
|
||||
private boolean shouldLoad(boolean init) {
|
||||
return requiredMod == null ? !init : init && Loader.isModLoaded(requiredMod);
|
||||
}
|
||||
|
||||
public static boolean oneModdedFeatureLoaded() {
|
||||
for (Features f : values()) {
|
||||
if (f.getRequiredMod() != null && Loader.isModLoaded(f.getRequiredMod())) {
|
||||
|
||||
@@ -63,6 +63,7 @@ public class ClientProxy extends CommonProxy {
|
||||
RenderingRegistry.registerEntityRenderingHandler(EntitySmashingRock.class, new RenderSnowball(ChiselItems.smashingrock));
|
||||
|
||||
MinecraftForgeClient.registerItemRenderer(ChiselItems.chisel, renderer);
|
||||
MinecraftForgeClient.registerItemRenderer(ChiselItems.diamondChisel, renderer);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in new issue
Block a user