Commit graph

2 commits

Author SHA1 Message Date
Spigot
d9c45724f6 Update chat link fix to use Bukkit's current system instead of the old one
By: Thinkofdeath <thethinkofdeath@gmail.com>
2014-01-18 19:36:47 +00:00
Spigot
1bd8195a1b Update Client's Hand when BlockPlaceEvent Cancelled
Send a Packet103SetSlot to client when a BlockPlaceEvent is cancelled.

Fixes BUKKIT-5284

Currently, whenever a player places a block in a protected area the
equipped itemstack size on client is never updated properly since the
client thinks the block was placed. The reason this happens is because
ItemStack.matches returns true since the server does not decrement stack
size if a BlockPlaceEvent is cancelled. This causes
PlayerConnection.a(handlePlace) not to send the appropriate packet to
client which causes the bug.

By: md_5 <git@md-5.net>
2014-01-08 14:45:45 +11:00