mirror of
https://github.com/PaperMC/Paper.git
synced 2024-12-28 15:30:19 +01:00
Remove from Map by key
This commit is contained in:
parent
857852c28a
commit
6c83bc6e58
1 changed files with 1 additions and 1 deletions
|
@ -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_();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue