Remove from Map by key

This commit is contained in:
jmp 2021-03-29 02:50:01 -07:00 committed by Mariell Hoversholm
parent 857852c28a
commit 6c83bc6e58

View file

@ -38,7 +38,7 @@ index 34a9f7b2f998f77b1279516cd09397ab6c2ac1cc..b9e0a17b66e69a02c216c50614bfac45
- if (tileentity != null) {
+ if (tileentity != null && (match == null || match == tileentity)) {
+ this.tileEntities.remove(tileentity);
+ this.tileEntities.remove(blockposition);
+ // Paper end
tileentity.al_();
}