12-31-2012, 10:50 AM
OnBlockBreak() is really called whenever the client sends a BlockBreak packet. The packet might have only some info updated (the blockface U / V coords, for example).
What we need is an API refactoring, we have already discussed it and we decided we'll get a set of hooks whose names would more descriptive: OnRightClick, OnLeftClick for whenever the packet arrives, OnBlockPlacing / OnBlockPlaced when a block is being placed, OnBlockBreaking / OnBlockBroken when a block is being broken, OnUseEntity when an entity has been rclked, etc. Just no-one got around to actually implement that
I'm still on vacation, and will be for one more month (yay New Zealand) and FakeTruth is away on vacation, too, so it's now up to you, if you want it really badly
What we need is an API refactoring, we have already discussed it and we decided we'll get a set of hooks whose names would more descriptive: OnRightClick, OnLeftClick for whenever the packet arrives, OnBlockPlacing / OnBlockPlaced when a block is being placed, OnBlockBreaking / OnBlockBroken when a block is being broken, OnUseEntity when an entity has been rclked, etc. Just no-one got around to actually implement that
I'm still on vacation, and will be for one more month (yay New Zealand) and FakeTruth is away on vacation, too, so it's now up to you, if you want it really badly