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

Fixed NPE in World. Fixes BUKKIT-306. Thanks Evenprime!

Dieser Commit ist enthalten in:
EvilSeph 2012-01-07 19:12:38 -05:00
Ursprung b74a69041e
Commit 86fef037e0

Datei anzeigen

@ -2565,6 +2565,9 @@ public class World implements IBlockAccess {
for (int i = 0; i < this.players.size(); ++i) {
EntityHuman entityhuman1 = (EntityHuman) this.players.get(i);
// CraftBukkit - fixed NPE
if (entityhuman1 == null || entityhuman1.dead) continue;
if (!entityhuman1.abilities.isInvulnerable) {
double d5 = entityhuman1.e(d0, d1, d2);