diff options
author | bloodshot <jdroque@gmail.com> | 2014-01-06 18:02:01 -0500 |
---|---|---|
committer | Travis Watkins <amaranth@ubuntu.com> | 2014-04-18 12:52:13 -0500 |
commit | 4c9bf34bf3f7954313dd6e5f8d8b208119c115ca (patch) | |
tree | 7e6e91de88f646047a44668cdefdac8faff300fc /src/main/java/org | |
parent | 5c115116ef25eadb3a5e54b4d093c2c940c7857f (diff) | |
download | craftbukkit-4c9bf34bf3f7954313dd6e5f8d8b208119c115ca.tar craftbukkit-4c9bf34bf3f7954313dd6e5f8d8b208119c115ca.tar.gz craftbukkit-4c9bf34bf3f7954313dd6e5f8d8b208119c115ca.tar.lz craftbukkit-4c9bf34bf3f7954313dd6e5f8d8b208119c115ca.tar.xz craftbukkit-4c9bf34bf3f7954313dd6e5f8d8b208119c115ca.zip |
Update client stack when block place 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. To correct this on cancel we set
the flag to always update the client regardless of matching.
Diffstat (limited to 'src/main/java/org')
0 files changed, 0 insertions, 0 deletions