add block remapping for old chisel versions

Chisel versions 1.5.4 to 1.5.7
This commit is contained in:
EoD committed 2014-10-08 10:51:56 +02:00
1 parent e8f43b4fae
commit adaec684b1
2 files changed
+109 -4

No files matched your search

@@ -74,6 +74,8 @@ public class Chisel
@EventHandler
public void missingMapping(FMLMissingMappingsEvent event)
{
BlockNameConversion.init();
for(MissingMapping m : event.get())
{
// This bug was introduced along with Chisel 1.5.2, and was fixed in 1.5.3.
@@ -87,8 +89,7 @@ public class Chisel
// Fix mapping of snakestoneSand, snakestoneStone, limestoneStairs, marbleStairs when loading an old (1.5.4) save
else if(m.type == Type.BLOCK)
{
Block block = null;
block = GameRegistry.findBlock(Chisel.MOD_ID, General.cleanTags(m.name));
final Block block = BlockNameConversion.findBlock(m.name);
if(block != null)
{
@@ -98,8 +99,7 @@ public class Chisel
FMLLog.getLogger().warn("Block " + m.name + " could not get remapped.");
} else if(m.type == Type.ITEM)
{
Item item = null;
item = GameRegistry.findItem(Chisel.MOD_ID, General.cleanTags(m.name));
final Item item = BlockNameConversion.findItem(m.name);
if(item != null)
{