diff options
| author | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-03-23 14:25:27 +0000 |
|---|---|---|
| committer | OnyxDarkKnight <sor1n.iliutza16@gmail.com> | 2015-03-23 14:25:27 +0000 |
| commit | e86949a1ad3269ec66c9de65e2c92f5e66251411 (patch) | |
| tree | abe7a3b14d7a5f7bb27a916a991f8911de94c1d2 /java/darkknight/jewelrycraft/worldGen/village/ComponentJewelry.java | |
| parent | 12cb40ba14e76b999a381b1f122bfce73223fd38 (diff) | |
More stuff. I don't even know by this point....
Diffstat (limited to 'java/darkknight/jewelrycraft/worldGen/village/ComponentJewelry.java')
| -rw-r--r-- | java/darkknight/jewelrycraft/worldGen/village/ComponentJewelry.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/java/darkknight/jewelrycraft/worldGen/village/ComponentJewelry.java b/java/darkknight/jewelrycraft/worldGen/village/ComponentJewelry.java index 6083049..c50e321 100644 --- a/java/darkknight/jewelrycraft/worldGen/village/ComponentJewelry.java +++ b/java/darkknight/jewelrycraft/worldGen/village/ComponentJewelry.java @@ -387,8 +387,8 @@ public class ComponentJewelry extends StructureVillagePieces.House1 int k1 = getZWithOffset(i, k); placeBlockAtCurrentPosition(world, BlockList.molder, metadata, i, j, k, sbb); TileEntityMolder molder = (TileEntityMolder)world.getTileEntity(i1, j1, k1); - if (molder != null) if (hasMold){ - int meta = random.nextInt(ItemMolds.moldsItemNames.length + 1); + if (molder != null && !molder.hasMold) if (hasMold){ + int meta = random.nextInt(ItemMolds.moldsItemNames.length); molder.mold = new ItemStack(ItemList.molds, 1, meta); molder.hasMold = true; if (hasStuff){ |
