mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-26 14:52:58 +00:00
Box blacklist (#5345)
* Ported a bunch of cardboard box blacklist commits * Added a couple wrapper methods to make it a little easier to read
This commit is contained in:
1 parent
890bc954d4
commit
0b060ead4b
5 files changed
+119
-36
No files matched your search
@@ -113,6 +113,7 @@ import net.minecraftforge.common.MinecraftForge;
|
||||
import net.minecraftforge.common.config.Configuration;
|
||||
import net.minecraftforge.fml.common.network.simpleimpl.MessageContext;
|
||||
import net.minecraftforge.fml.relauncher.FMLInjectionData;
|
||||
import net.minecraftforge.oredict.OreDictionary;
|
||||
|
||||
/**
|
||||
* Common proxy for the Mekanism mod.
|
||||
@@ -715,9 +716,9 @@ public class CommonProxy implements IGuiProvider {
|
||||
|
||||
public void onConfigSync(boolean fromPacket) {
|
||||
if (general.cardboardSpawners) {
|
||||
MekanismAPI.removeBoxBlacklist(Blocks.MOB_SPAWNER, 0);
|
||||
MekanismAPI.removeBoxBlacklist(Blocks.MOB_SPAWNER, OreDictionary.WILDCARD_VALUE);
|
||||
} else {
|
||||
MekanismAPI.addBoxBlacklist(Blocks.MOB_SPAWNER, 0);
|
||||
MekanismAPI.addBoxBlacklist(Blocks.MOB_SPAWNER, OreDictionary.WILDCARD_VALUE);
|
||||
}
|
||||
|
||||
BlockStateMachine.MachineType.updateAllUsages();
|
||||
|
||||
Reference in new issue
Block a user