Dieser Commit ist enthalten in:
Taylor Kelly 2011-01-10 11:00:53 +08:00 committet von Dinner Bone
Ursprung c6d80df80d
Commit 750cc107ae

Datei anzeigen

@ -282,9 +282,13 @@ public class NetServerHandler extends NetHandler
// Craftbukkit start
CraftBlock block = (CraftBlock) player.getWorld().getBlockAt(l, i1, j1);
int blockID = block.getTypeID();
float damage = Block.m[blockID].a(player.getHandle()); //Get amount of damage going to block
int blockID = 0;
float damage = 0;
if(block != null) {
blockID = block.getTypeID();
damage = Block.m[blockID].a(player.getHandle()); //Get amount of damage going to block
}
if (packet14blockdig.e == 0) {
if (i2 > 16 || flag) {
if(blockID > 0) {