Prevent NPE when setting tempt target to null
Dieser Commit ist enthalten in:
Ursprung
10daedccdd
Commit
fe3ca95c76
@ -34,7 +34,7 @@
|
||||
+ if (event.isCancelled()) {
|
||||
+ return false;
|
||||
+ }
|
||||
+ this.target = ((CraftLivingEntity) event.getTarget()).getHandle();
|
||||
+ this.target = (event.getTarget() == null) ? null : ((CraftLivingEntity) event.getTarget()).getHandle();
|
||||
+ }
|
||||
+ return tempt;
|
||||
+ // CraftBukkit end
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren