geforkt von Mirrors/Paper
Fixed NPE
Dieser Commit ist enthalten in:
Ursprung
11b114ca16
Commit
b1ee09f733
@ -282,10 +282,9 @@ public class NetServerHandler extends NetHandler
|
|||||||
|
|
||||||
// Craftbukkit start
|
// Craftbukkit start
|
||||||
CraftBlock block = (CraftBlock) player.getWorld().getBlockAt(l, i1, j1);
|
CraftBlock block = (CraftBlock) player.getWorld().getBlockAt(l, i1, j1);
|
||||||
int blockID = 0;
|
int blockID = block.getTypeID();
|
||||||
float damage = 0;
|
float damage = 0;
|
||||||
if(block != null) {
|
if(Block.m[blockID] != null) {
|
||||||
blockID = block.getTypeID();
|
|
||||||
damage = Block.m[blockID].a(player.getHandle()); //Get amount of damage going to block
|
damage = Block.m[blockID].a(player.getHandle()); //Get amount of damage going to block
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren