Fixed a bug with custom village materials
This commit is contained in:
parent
00b917171e
commit
25107b4733
2 changed files with 3 additions and 3 deletions
|
@ -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();
|
||||||
|
|
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue