Skip to content

Commit

Permalink
Change BlockEntity#setValid() to remove() (#4026)
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHell228 authored Jun 4, 2024
1 parent a0e61ec commit 5c80421
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion SpongeAPI
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,15 @@ public boolean validateRawData(final DataView container) {
}

@Override
public boolean isValid() {
return !this.remove;
public boolean isRemoved() {
return this.remove;
}

@Override
public void setValid(final boolean valid) {
this.remove = valid;
public void remove() {
if (!this.remove) {
this.world().removeBlockEntity(this.blockPosition());
}
}

@Override
Expand Down

0 comments on commit 5c80421

Please sign in to comment.