ddevault / Craft.Net

(Unmaintained, see TrueCraft) Minecraft server, client, and etc for .NET
MIT License
228 stars 65 forks source link

Placing blocks removes it from the inventory twice #131

Closed ddevault closed 11 years ago

ghost commented 11 years ago

I'm pretty sure the issue lies in InteractionHandlers.RightClick(MinecraftClient client, MinecraftServer server, IPacket _packet). Commenting out either item.OnItemUsed(client.World, client.Entity); or item.OnItemUsedOnBlock(client.World, position, AdjustByDirection(packet.Direction), cursorPosition, client.Entity); Causes the block count to only be decremented by one instead of two. I'm not sure of the effects of commenting out either of them though.

ddevault commented 11 years ago

Thanks. I'll start there when I go hunting this bug down.