Posted July 8, 201510 yr Inside the event, "PlayerEvent.BreakSpeed", returns incorrect blockPos information. More on that... While debugging, the first 3 passes through that event work out fine and return correct information. The last pass through the event returns a BlockPos with the values of 0, 0, 0. tested it with bare minimum amount of code. public void onBlockStartBreak(PlayerEvent.BreakSpeed event){ BlockPos pos = event.pos; } Thanks!
July 8, 201510 yr Author I decided to add an if statement to check if posX , Y, and Z, are 0. If they are, don't continue. It's working client and server side.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.