Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -104,11 +104,9 @@ public void t_() {
this.c = 0;
if (!this.dead && !this.survives()) {
// CraftBukkit start - fire break events
Material material = this.world.getType(new BlockPosition(this)).getBlock().getMaterial();
HangingBreakEvent.RemoveCause cause;

if (!material.equals(Material.AIR)) {
// TODO: This feels insufficient to catch 100% of suffocation cases
if (!this.world.getCubes(this, this.getBoundingBox()).isEmpty()) {
cause = HangingBreakEvent.RemoveCause.OBSTRUCTION;
} else {
cause = HangingBreakEvent.RemoveCause.PHYSICS;
Expand Down