Commits

md_5 authored 1628ce62405
SPIGOT-2474: Use .die() to set entity remove status
No tags

src/main/java/org/bukkit/craftbukkit/entity/CraftEntity.java

Modified
268 268
269 269 public int getMaxFireTicks() {
270 270 return entity.maxFireTicks;
271 271 }
272 272
273 273 public void setFireTicks(int ticks) {
274 274 entity.fireTicks = ticks;
275 275 }
276 276
277 277 public void remove() {
278 - entity.dead = true;
278 + entity.die();
279 279 }
280 280
281 281 public boolean isDead() {
282 282 return !entity.isAlive();
283 283 }
284 284
285 285 public boolean isValid() {
286 286 return entity.isAlive() && entity.valid;
287 287 }
288 288

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut