Compare commits

..
2 Commits
Author SHA1 Message Date
SuperSoupr 85cacc679c Use FMLModIdMappingEvent for numeric id mapping (#15) 2025-12-05 11:41:36 +02:00
Dream Master 727348ecad update 2025-07-16 15:06:51 +07:00
2 changed files with 4 additions and 3 deletions

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
dependencies { dependencies {
api("com.github.GTNewHorizons:GTNHLib:0.6.37:dev") api("com.github.GTNewHorizons:GTNHLib:0.6.38:dev")
compileOnly('com.github.GTNewHorizons:NotEnoughIds:2.1.10:dev') compileOnly('com.github.GTNewHorizons:NotEnoughIds:2.1.10:dev')
compileOnly('com.falsepattern:chunkapi-mc1.7.10:0.6.0:dev') compileOnly('com.falsepattern:chunkapi-mc1.7.10:0.6.0:dev')
compileOnly('com.falsepattern:endlessids-mc1.7.10:1.6.0:dev') compileOnly('com.falsepattern:endlessids-mc1.7.10:1.6.0:dev')
@@ -6,8 +6,8 @@ import static com.gtnewhorizons.postea.api.BlockReplacementManager.posteaMarkedI
import net.minecraft.block.Block; import net.minecraft.block.Block;
import cpw.mods.fml.common.Mod; import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.event.FMLModIdMappingEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent;
import cpw.mods.fml.common.event.FMLServerAboutToStartEvent;
import cpw.mods.fml.common.event.FMLServerStoppingEvent; import cpw.mods.fml.common.event.FMLServerStoppingEvent;
@Mod( @Mod(
@@ -26,7 +26,8 @@ public class Postea {
public void preInit(FMLPreInitializationEvent event) {} public void preInit(FMLPreInitializationEvent event) {}
@Mod.EventHandler @Mod.EventHandler
public void onServerStarting(FMLServerAboutToStartEvent event) { public void onIdMappingsChanged(FMLModIdMappingEvent event) {
posteaMarkedIDs.clear();
for (String name : blockReplacementMap.keySet()) { for (String name : blockReplacementMap.keySet()) {
Block block = Block.getBlockFromName(name); Block block = Block.getBlockFromName(name);
if (block != null) { if (block != null) {