From ed27c9d52c5a03f359b14adaf04200874e160d80 Mon Sep 17 00:00:00 2001
From: Jason Penilla <11360596+jpenilla@users.noreply.github.com>
Date: Mon, 29 Mar 2021 02:50:01 -0700
Subject: [PATCH] Remove from Map by key

---
 .../Make-sure-to-remove-correct-TE-during-TE-tick.patch         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Spigot-Server-Patches/Make-sure-to-remove-correct-TE-during-TE-tick.patch b/Spigot-Server-Patches/Make-sure-to-remove-correct-TE-during-TE-tick.patch
index 6988095841..3979a358e9 100644
--- a/Spigot-Server-Patches/Make-sure-to-remove-correct-TE-during-TE-tick.patch
+++ b/Spigot-Server-Patches/Make-sure-to-remove-correct-TE-during-TE-tick.patch
@@ -38,7 +38,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
  
 -            if (tileentity != null) {
 +            if (tileentity != null && (match == null || match == tileentity)) {
-+                this.tileEntities.remove(tileentity);
++                this.tileEntities.remove(blockposition);
 +                // Paper end
                  tileentity.al_();
              }