mirror of
https://hub.spigotmc.org/stash/scm/spigot/craftbukkit.git
synced 2025-08-21 05:44:33 +00:00
Fixed NPE in World. Fixes BUKKIT-306. Thanks Evenprime!
This commit is contained in:
parent
b74a69041e
commit
86fef037e0
1 changed files with 3 additions and 0 deletions
|
@ -2565,6 +2565,9 @@ public class World implements IBlockAccess {
|
||||||
for (int i = 0; i < this.players.size(); ++i) {
|
for (int i = 0; i < this.players.size(); ++i) {
|
||||||
EntityHuman entityhuman1 = (EntityHuman) this.players.get(i);
|
EntityHuman entityhuman1 = (EntityHuman) this.players.get(i);
|
||||||
|
|
||||||
|
// CraftBukkit - fixed NPE
|
||||||
|
if (entityhuman1 == null || entityhuman1.dead) continue;
|
||||||
|
|
||||||
if (!entityhuman1.abilities.isInvulnerable) {
|
if (!entityhuman1.abilities.isInvulnerable) {
|
||||||
double d5 = entityhuman1.e(d0, d1, d2);
|
double d5 = entityhuman1.e(d0, d1, d2);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue