Added basic support back for block-crack animations when breaking blocks

TODO: improve this to take stuff like swimming, ladders, enchanted tools into account, fix wrong tool break time calculations for bad tools (pmmp/PocketMine-MP#211)
This commit is contained in:
Dylan K. Taylor
2017-05-05 09:40:55 +01:00
parent 56306f6636
commit 702c129a97
2 changed files with 14 additions and 1 deletions

View File

@ -88,6 +88,9 @@ class LevelEventPacket extends DataPacket{
const EVENT_CAULDRON_TAKE_WATER = 3507;
const EVENT_CAULDRON_ADD_DYE = 3508;
const EVENT_BLOCK_START_BREAK = 3600;
const EVENT_BLOCK_STOP_BREAK = 3601;
const EVENT_SET_DATA = 4000;
const EVENT_PLAYERS_SLEEPING = 9800;