3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-20 21:40:06 +01:00

Fixed the NPE in inventoryplayer once again, thanks to don4of4

Dieser Commit ist enthalten in:
Nathan Adams 2011-11-26 01:01:43 +00:00
Ursprung 8062d5c7be
Commit 256d4ba555

Datei anzeigen

@ -312,7 +312,13 @@ public class InventoryPlayer implements IInventory {
} }
public boolean b(Block block) { public boolean b(Block block) {
if (block != null && block.material.k()) { // CraftBukkit - fix NPE // CraftBukkit start - fixed NPE
if (block == null) {
return false;
}
// CraftBukkit end
if (block.material.k()) {
return true; return true;
} else { } else {
ItemStack itemstack = this.getItem(this.itemInHandIndex); ItemStack itemstack = this.getItem(this.itemInHandIndex);