From 38ac6454b2c88432f1da9474fcceafb9d8ab5e3b Mon Sep 17 00:00:00 2001 From: OnyxDarkKnight Date: Tue, 17 Dec 2013 23:52:19 +0200 Subject: Sync stuff :) --- common/darkknight/jewelrycraft/block/BlockMolder.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'common/darkknight/jewelrycraft/block/BlockMolder.java') diff --git a/common/darkknight/jewelrycraft/block/BlockMolder.java b/common/darkknight/jewelrycraft/block/BlockMolder.java index 5d1f30d..a3df95f 100644 --- a/common/darkknight/jewelrycraft/block/BlockMolder.java +++ b/common/darkknight/jewelrycraft/block/BlockMolder.java @@ -45,19 +45,21 @@ public class BlockMolder extends BlockContainer { TileEntityMolder te = (TileEntityMolder) world.getBlockTileEntity(i, j, k); ItemStack item = entityPlayer.inventory.getCurrentItem(); - if (te != null && item != null && !te.hasMold && item.itemID == ItemList.molds.itemID) + if (te != null && item != null && !te.hasMold && item.itemID == ItemList.molds.itemID && !world.isRemote) { te.mold = item; te.hasMold = true; --item.stackSize; if (world.isRemote) entityPlayer.addChatMessage(StatCollector.translateToLocalFormatted("chatmessage.jewelrycraft.molder.addedmold", te.mold.getDisplayName())); + te.isDirty = true; } - if (te.hasMold && entityPlayer.isSneaking()) + if (te.hasMold && entityPlayer.isSneaking() && !world.isRemote) { entityPlayer.inventory.addItemStackToInventory(new ItemStack(te.mold.itemID, 1, te.mold.getItemDamage())); te.mold = new ItemStack(0, 0, 0); te.hasMold = false; + te.isDirty = true; } return true; } @@ -140,6 +142,7 @@ public class BlockMolder extends BlockContainer player.addChatMessage(StatCollector.translateToLocal("chatmessage.jewelrycraft.molder.moldisempty")); else if (me.mold.itemID != ItemList.molds.itemID) player.addChatMessage(StatCollector.translateToLocal("chatmessage.jewelrycraft.molder.moldismissing")); + me.isDirty = true; } } -- cgit v1.2.3