mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-16 04:33:56 -07:00
Fixed BLOCK_DAMAGED
This commit is contained in:
@@ -303,7 +303,7 @@ public class NetServerHandler extends NetHandler implements ICommandListener {
|
|||||||
|
|
||||||
// CraftBukkit start
|
// CraftBukkit start
|
||||||
CraftPlayer player = getPlayer();
|
CraftPlayer player = getPlayer();
|
||||||
CraftBlock block = (CraftBlock) player.getWorld().getBlockAt(l, i1, j1);
|
CraftBlock block = (CraftBlock) player.getWorld().getBlockAt(i, j, k);
|
||||||
int blockId = block.getTypeId();
|
int blockId = block.getTypeId();
|
||||||
float damage = 0;
|
float damage = 0;
|
||||||
if(Block.byId[blockId] != null) {
|
if(Block.byId[blockId] != null) {
|
||||||
|
Reference in New Issue
Block a user