mirror of
https://github.com/HbmMods/Hbm-s-Nuclear-Tech-GIT.git
synced 2026-01-25 10:32:49 +00:00
Merge branch 'HbmMods:master' into bob
This commit is contained in:
commit
b7dc3fb600
@ -1,6 +1,2 @@
|
||||
## Changed
|
||||
* Blueprint folders can now be bought on bobmazon (64 for blue recipes, 256 for beige ones)
|
||||
|
||||
## Fixed
|
||||
* Fixed the QMAW loader crashing servers
|
||||
* Oops
|
||||
* Due to severe issues with ticking order as well as a crash caused by certain tiles that uses threaded packets, Torcherino accelerator torches no longer affect NTM machines
|
||||
@ -5,6 +5,7 @@ import java.util.Map.Entry;
|
||||
|
||||
import com.hbm.handler.guncfg.*;
|
||||
|
||||
@Deprecated
|
||||
public class BulletConfigSyncingUtil {
|
||||
|
||||
private static HashMap<Integer, BulletConfiguration> configSet = new HashMap<Integer, BulletConfiguration>();
|
||||
|
||||
@ -4,6 +4,7 @@ import com.hbm.handler.BulletConfiguration;
|
||||
import com.hbm.inventory.RecipesCommon.ComparableStack;
|
||||
import com.hbm.items.ModItems;
|
||||
|
||||
@Deprecated
|
||||
public class GunEnergyFactory {
|
||||
|
||||
public static BulletConfiguration getTurbineConfig() {
|
||||
|
||||
@ -23,6 +23,7 @@ import net.minecraft.entity.player.EntityPlayer;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.util.Vec3;
|
||||
|
||||
@Deprecated
|
||||
public class GunNPCFactory {
|
||||
|
||||
public static BulletConfiguration getMaskmanOrb() {
|
||||
|
||||
@ -14,6 +14,7 @@ import net.minecraft.nbt.NBTTagList;
|
||||
* @author UFFR
|
||||
*/
|
||||
|
||||
@Deprecated
|
||||
public class IMCBlastFurnace extends IMCHandler {
|
||||
public static final ArrayList<Triplet<Object, Object, ItemStack>> buffer = new ArrayList<>();
|
||||
|
||||
|
||||
@ -10,6 +10,7 @@ import cpw.mods.fml.common.event.FMLInterModComms.IMCMessage;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
@Deprecated
|
||||
public class IMCCentrifuge extends IMCHandler {
|
||||
|
||||
public static HashMap<AStack, ItemStack[]> buffer = new HashMap();
|
||||
|
||||
@ -13,6 +13,7 @@ import cpw.mods.fml.common.event.FMLInterModComms.IMCMessage;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
|
||||
@Deprecated
|
||||
public class IMCCrystallizer extends IMCHandler {
|
||||
|
||||
public static HashMap<Pair<Object, FluidType>, CrystallizerRecipe> buffer = new HashMap();
|
||||
|
||||
@ -6,6 +6,13 @@ import com.hbm.main.MainRegistry;
|
||||
|
||||
import cpw.mods.fml.common.event.FMLInterModComms.IMCMessage;
|
||||
|
||||
/**
|
||||
* I'm not aware of anyone even using these, and for proper addon mods it's way easier to use direct calls instead of messages.
|
||||
* Too cumbersome to implement and maintain, especially since the recipe register listeners exist now. Current implementation will break on recipe reload anyway.
|
||||
*
|
||||
* @author hbm
|
||||
*/
|
||||
@Deprecated
|
||||
public abstract class IMCHandler {
|
||||
|
||||
private static final HashMap<String, IMCHandler> handlers = new HashMap();
|
||||
|
||||
@ -54,8 +54,9 @@ import com.hbm.tileentity.machine.rbmk.*;
|
||||
import com.hbm.tileentity.machine.storage.*;
|
||||
import com.hbm.tileentity.network.*;
|
||||
import com.hbm.tileentity.turret.*;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import com.hbm.util.Compat;
|
||||
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import net.minecraft.tileentity.TileEntity;
|
||||
|
||||
public class TileMappings {
|
||||
@ -480,5 +481,12 @@ public class TileMappings {
|
||||
if(IConfigurableMachine.class.isAssignableFrom(clazz)) {
|
||||
configurables.add((Class<? extends IConfigurableMachine>) clazz);
|
||||
}
|
||||
|
||||
/**
|
||||
* Causes problems with most machines where two independently acting tiles work together (TU machines, RBMKs, fluid transfer)
|
||||
* Also breaks due to some sort of buffer leak in the threaded packets, if a boiler is involved (which uses a ByteBuf instead of the usual serializing) it crashes
|
||||
* Ticking order of Torcherinos is AAA BBB CCC instead of ABC ABC ABC which can lead to some horrifying behavior
|
||||
*/
|
||||
Compat.blacklistAccelerator(clazz);
|
||||
}
|
||||
}
|
||||
|
||||
@ -9,6 +9,7 @@ import com.hbm.inventory.fluid.Fluids;
|
||||
import com.hbm.main.MainRegistry;
|
||||
import cpw.mods.fml.common.FMLCommonHandler;
|
||||
import cpw.mods.fml.common.Loader;
|
||||
import cpw.mods.fml.common.event.FMLInterModComms;
|
||||
import cpw.mods.fml.common.eventhandler.EventBus;
|
||||
import cpw.mods.fml.common.eventhandler.IEventListener;
|
||||
import cpw.mods.fml.relauncher.ReflectionHelper;
|
||||
@ -37,6 +38,7 @@ public class Compat {
|
||||
public static final String MOD_TC = "tc";
|
||||
public static final String MOD_EIDS = "endlessids";
|
||||
public static final String MOD_ANG = "angelica";
|
||||
public static final String MOD_TOR = "Torcherino";
|
||||
|
||||
public static Item tryLoadItem(String domain, String name) {
|
||||
return (Item) Item.itemRegistry.getObject(getReg(domain, name));
|
||||
@ -259,4 +261,8 @@ public class Compat {
|
||||
if(!world.getChunkProvider().chunkExists(x >> 4, z >> 4)) return null;
|
||||
return world.getTileEntity(x, y, z);
|
||||
}
|
||||
|
||||
public static void blacklistAccelerator(Class clazz) {
|
||||
FMLInterModComms.sendMessage("Torcherino", "blacklist-tile", clazz.getName());
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user