Fix bad rename
This commit is contained in:
parent
bb5a3e2647
commit
7433eb7630
6 changed files with 7 additions and 7 deletions
|
@ -132,7 +132,7 @@ public class Core {
|
||||||
logHelper.info("PreInitialization Complete");
|
logHelper.info("PreInitialization Complete");
|
||||||
}
|
}
|
||||||
|
|
||||||
@SubscribeEvent(priority = EventPriority.LOW)//LOW is used as we want it to tick as late as possible, but before crafttweaker
|
@SubscribeEvent(priority = EventPriority.LOW)//LOW is used as we want it to load as late as possible, but before crafttweaker
|
||||||
public void registerRecipes(RegistryEvent.Register<IRecipe> event) {
|
public void registerRecipes(RegistryEvent.Register<IRecipe> event) {
|
||||||
//Register ModRecipes
|
//Register ModRecipes
|
||||||
ModRecipes.init();
|
ModRecipes.init();
|
||||||
|
@ -168,7 +168,7 @@ public class Core {
|
||||||
//Village stuff
|
//Village stuff
|
||||||
VillagerRegistry.instance().registerVillageCreationHandler(new VillagePlantaionHandler());
|
VillagerRegistry.instance().registerVillageCreationHandler(new VillagePlantaionHandler());
|
||||||
MapGenStructureIO.registerStructureComponent(VillageComponentRubberPlantaion.class, new ResourceLocation(ModInfo.MOD_ID, "rubberplantation").toString());
|
MapGenStructureIO.registerStructureComponent(VillageComponentRubberPlantaion.class, new ResourceLocation(ModInfo.MOD_ID, "rubberplantation").toString());
|
||||||
ModLootTables.CHESTS_RUBBER_PLANTATION.toString(); //Done to make it tick, then it will be read from disk
|
ModLootTables.CHESTS_RUBBER_PLANTATION.toString(); //Done to make it load, then it will be read from disk
|
||||||
// Scrapbox
|
// Scrapbox
|
||||||
if (BehaviorDispenseScrapbox.dispenseScrapboxes) {
|
if (BehaviorDispenseScrapbox.dispenseScrapboxes) {
|
||||||
BlockDispenser.DISPENSE_BEHAVIOR_REGISTRY.putObject(ModItems.SCRAP_BOX, new BehaviorDispenseScrapbox());
|
BlockDispenser.DISPENSE_BEHAVIOR_REGISTRY.putObject(ModItems.SCRAP_BOX, new BehaviorDispenseScrapbox());
|
||||||
|
|
|
@ -29,7 +29,7 @@ import reborncore.common.registration.impl.ConfigRegistry;
|
||||||
import techreborn.lib.ModInfo;
|
import techreborn.lib.ModInfo;
|
||||||
|
|
||||||
|
|
||||||
//This is in its own class as not to tick the block class before
|
//This is in its own class as not to load the block class before
|
||||||
@RebornRegistry(modID = ModInfo.MOD_ID, priority = 1, earlyReg = true)
|
@RebornRegistry(modID = ModInfo.MOD_ID, priority = 1, earlyReg = true)
|
||||||
public class OreBlockStateManager {
|
public class OreBlockStateManager {
|
||||||
//This is a one off config, dont worry about it
|
//This is a one off config, dont worry about it
|
||||||
|
|
|
@ -53,7 +53,7 @@ public class ModelHelper {
|
||||||
|
|
||||||
return ModelBlock.deserialize(getReaderForResource(location)).getAllTransforms();
|
return ModelBlock.deserialize(getReaderForResource(location)).getAllTransforms();
|
||||||
} catch (IOException exception) {
|
} catch (IOException exception) {
|
||||||
Core.logHelper.warn("Can't tick resource " + location);
|
Core.logHelper.warn("Can't load resource " + location);
|
||||||
exception.printStackTrace();
|
exception.printStackTrace();
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
|
@ -73,7 +73,7 @@ public class IC2Module implements ICompatModule, IC2Helper {
|
||||||
TechRebornAPI.ic2Helper = this;
|
TechRebornAPI.ic2Helper = this;
|
||||||
}
|
}
|
||||||
|
|
||||||
// LOW is used as we want it to tick as late as possible, but before crafttweaker
|
// LOW is used as we want it to load as late as possible, but before crafttweaker
|
||||||
@SubscribeEvent(priority = EventPriority.LOW)
|
@SubscribeEvent(priority = EventPriority.LOW)
|
||||||
public void registerRecipes(RegistryEvent.Register<IRecipe> event) {
|
public void registerRecipes(RegistryEvent.Register<IRecipe> event) {
|
||||||
recipeDuplicateList.add(new RecipeDuplicate(new ItemStack(ModBlocks.MACHINE_FRAMES, 1, 0),
|
recipeDuplicateList.add(new RecipeDuplicate(new ItemStack(ModBlocks.MACHINE_FRAMES, 1, 0),
|
||||||
|
|
|
@ -60,7 +60,7 @@ public class TileCable extends TileEntity
|
||||||
private ArrayList<EnumFacing> sendingFace = new ArrayList<EnumFacing>();
|
private ArrayList<EnumFacing> sendingFace = new ArrayList<EnumFacing>();
|
||||||
int ticksSinceLastChange = 0;
|
int ticksSinceLastChange = 0;
|
||||||
|
|
||||||
//MC calls this during world tick. Keep it, please.
|
//MC calls this during world load. Keep it, please.
|
||||||
public TileCable() {
|
public TileCable() {
|
||||||
super();
|
super();
|
||||||
}
|
}
|
||||||
|
|
|
@ -138,7 +138,7 @@ public class TileSolarPanel extends TilePowerAcceptor implements IToolDrop {
|
||||||
if(tag.hasKey("panelType")){
|
if(tag.hasKey("panelType")){
|
||||||
panel = EnumPanelType.values()[tag.getInteger("panelType")];
|
panel = EnumPanelType.values()[tag.getInteger("panelType")];
|
||||||
} else {
|
} else {
|
||||||
Core.logHelper.warn("A solar panel has failed to tick from NBT, it will not work correctly. Please break and replace it to fix the issue. BlockPos:" + pos.toString());
|
Core.logHelper.warn("A solar panel has failed to load from NBT, it will not work correctly. Please break and replace it to fix the issue. BlockPos:" + pos.toString());
|
||||||
panel = EnumPanelType.Basic;
|
panel = EnumPanelType.Basic;
|
||||||
}
|
}
|
||||||
super.readFromNBT(tag);
|
super.readFromNBT(tag);
|
||||||
|
|
Loading…
Add table
Reference in a new issue