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