mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 04:25:26 +01:00
Remove from Map by key
This commit is contained in:
parent
857852c28a
commit
6c83bc6e58
@ -38,7 +38,7 @@ index 34a9f7b2f998f77b1279516cd09397ab6c2ac1cc..b9e0a17b66e69a02c216c50614bfac45
|
|||||||
|
|
||||||
- if (tileentity != null) {
|
- if (tileentity != null) {
|
||||||
+ if (tileentity != null && (match == null || match == tileentity)) {
|
+ if (tileentity != null && (match == null || match == tileentity)) {
|
||||||
+ this.tileEntities.remove(tileentity);
|
+ this.tileEntities.remove(blockposition);
|
||||||
+ // Paper end
|
+ // Paper end
|
||||||
tileentity.al_();
|
tileentity.al_();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user