mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-16 10:34:53 +00:00
Add IMC messages for mods to blacklist dimensions in
This commit is contained in:
1 parent
4c874fcf7d
commit
e30e9f4ab9
5 files changed
+42
-1
No files matched your search
@@ -29,6 +29,7 @@ import net.minecraft.init.Blocks;
|
||||
import net.minecraft.init.Items;
|
||||
import net.minecraft.init.PotionTypes;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.nbt.NBTTagCompound;
|
||||
import net.minecraft.potion.PotionUtils;
|
||||
import net.minecraft.util.NonNullList;
|
||||
import net.minecraft.util.ResourceLocation;
|
||||
@@ -951,6 +952,12 @@ public class ModuleApiculture extends BlankForestryModule {
|
||||
String messageString = String.format("Received a '%s' request from mod '%s'. This IMC message has been replaced with the oreDictionary for 'slabWood'. Please contact the author and report this issue.", message.key, message.getSender());
|
||||
Log.warning(messageString);
|
||||
return true;
|
||||
} else if (message.key.equals("blacklist-hives-dimension")) {
|
||||
int[] dims = message.getNBTValue().getIntArray("dimensions");
|
||||
for(int dim : dims) {
|
||||
HiveConfig.addBlacklistedDim(dim);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user