Fixed a bug with custom village materials

This commit is contained in:
Adubbz 2013-09-15 11:22:11 +10:00
parent 00b917171e
commit 25107b4733
2 changed files with 3 additions and 3 deletions

View file

@ -102,6 +102,7 @@ public class BiomesOPlenty
{ {
// Add helpers for compatibility // Add helpers for compatibility
MinecraftForge.TERRAIN_GEN_BUS.register(new WorldTypeSize()); MinecraftForge.TERRAIN_GEN_BUS.register(new WorldTypeSize());
MinecraftForge.TERRAIN_GEN_BUS.register(new VillageMaterialEventHandler());
MinecraftForge.EVENT_BUS.register(new AchievementHelper()); MinecraftForge.EVENT_BUS.register(new AchievementHelper());
MinecraftForge.EVENT_BUS.register(new BonemealHandler()); MinecraftForge.EVENT_BUS.register(new BonemealHandler());
MinecraftForge.EVENT_BUS.register(new EntityEventHandler()); MinecraftForge.EVENT_BUS.register(new EntityEventHandler());
@ -109,7 +110,6 @@ public class BiomesOPlenty
MinecraftForge.EVENT_BUS.register(new BreakSpeedHandler()); MinecraftForge.EVENT_BUS.register(new BreakSpeedHandler());
MinecraftForge.EVENT_BUS.register(new MovementHandler()); MinecraftForge.EVENT_BUS.register(new MovementHandler());
MinecraftForge.EVENT_BUS.register(new FlipperMovementEventHandler()); MinecraftForge.EVENT_BUS.register(new FlipperMovementEventHandler());
MinecraftForge.EVENT_BUS.register(new VillageMaterialEventHandler());
//MinecraftForge.EVENT_BUS.register(new AxeChopHandler()); //MinecraftForge.EVENT_BUS.register(new AxeChopHandler());
proxy.registerRenderers(); proxy.registerRenderers();

View file

@ -15,8 +15,8 @@ public class VillageMaterialEventHandler
{ {
if (event.original == Block.cobblestone.blockID) if (event.original == Block.cobblestone.blockID)
{ {
event.replacement = Block.brick.blockID; event.replacement = Block.brick.blockID;
event.setResult(Result.DENY); event.setResult(Result.DENY);
} }
} }
} }