From 646ddfd6f98ff6b585e4d96c186372b9426ff0be Mon Sep 17 00:00:00 2001 From: Aikar Date: Sun, 12 Aug 2018 02:14:31 -0400 Subject: [PATCH] Restore portal fix --- ...5-Call-PortalCreateEvent-for-exit-portals.patch | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Spigot-Server-Patches/0245-Call-PortalCreateEvent-for-exit-portals.patch b/Spigot-Server-Patches/0245-Call-PortalCreateEvent-for-exit-portals.patch index b7d91a8c5..1b6f3edaf 100644 --- a/Spigot-Server-Patches/0245-Call-PortalCreateEvent-for-exit-portals.patch +++ b/Spigot-Server-Patches/0245-Call-PortalCreateEvent-for-exit-portals.patch @@ -1,11 +1,11 @@ -From cb5d0df8f262c31ce24f9cd39a70d2974420b95f Mon Sep 17 00:00:00 2001 +From 0e37166c412ab13ae4514136d1313cf404909ef7 Mon Sep 17 00:00:00 2001 From: MiniDigger Date: Sun, 18 Mar 2018 15:44:44 +0100 Subject: [PATCH] Call PortalCreateEvent for exit portals diff --git a/src/main/java/net/minecraft/server/PortalTravelAgent.java b/src/main/java/net/minecraft/server/PortalTravelAgent.java -index 402d8d7d63..7444f4621e 100644 +index 402d8d7d..72b85bf6 100644 --- a/src/main/java/net/minecraft/server/PortalTravelAgent.java +++ b/src/main/java/net/minecraft/server/PortalTravelAgent.java @@ -48,6 +48,9 @@ public class PortalTravelAgent { @@ -25,7 +25,7 @@ index 402d8d7d63..7444f4621e 100644 - this.world.setTypeUpdate(new BlockPosition(k1, l1, i2), flag2 ? Blocks.OBSIDIAN.getBlockData() : Blocks.AIR.getBlockData()); + // Paper start + BlockPosition pos = new BlockPosition(k1, l1, i2); -+ nmsBlocks.putIfAbsent(pos, flag2 ? Blocks.OBSIDIAN.getBlockData() : Blocks.AIR.getBlockData()); ++ nmsBlocks.put(pos, flag2 ? Blocks.OBSIDIAN.getBlockData() : Blocks.AIR.getBlockData()); + bukkitBlocks.add(this.world.getWorld().getBlockAt(pos.getX(), pos.getY(), pos.getZ())); + // Paper end } @@ -60,7 +60,7 @@ index 402d8d7d63..7444f4621e 100644 - this.world.setTypeUpdate(blockposition_mutableblockposition, flag1 ? Blocks.OBSIDIAN.getBlockData() : Blocks.AIR.getBlockData()); + // Paper start + BlockPosition pos = new BlockPosition(j3, k3, l3); -+ nmsBlocks.putIfAbsent(pos, flag1 ? Blocks.OBSIDIAN.getBlockData() : Blocks.AIR.getBlockData()); ++ nmsBlocks.put(pos, flag1 ? Blocks.OBSIDIAN.getBlockData() : Blocks.AIR.getBlockData()); + bukkitBlocks.add(this.world.getWorld().getBlockAt(pos.getX(), pos.getY(), pos.getZ())); + // Paper end } @@ -73,7 +73,7 @@ index 402d8d7d63..7444f4621e 100644 - this.world.setTypeAndData(blockposition_mutableblockposition, Blocks.OBSIDIAN.getBlockData(), 3); + // Paper start + BlockPosition pos = new BlockPosition(blockposition_mutableblockposition.getX(), blockposition_mutableblockposition.getY(), blockposition_mutableblockposition.getZ()); -+ nmsBlocks.putIfAbsent(pos, Blocks.OBSIDIAN.getBlockData()); ++ nmsBlocks.put(pos, Blocks.OBSIDIAN.getBlockData()); + bukkitBlocks.add(this.world.getWorld().getBlockAt(pos.getX(), pos.getY(), pos.getZ())); + // Paper end } @@ -87,7 +87,7 @@ index 402d8d7d63..7444f4621e 100644 + + // Paper start + BlockPosition pos = new BlockPosition(blockposition_mutableblockposition.getX(), blockposition_mutableblockposition.getY(), blockposition_mutableblockposition.getZ()); -+ nmsBlocks.putIfAbsent(pos, iblockdata); ++ nmsBlocks.put(pos, iblockdata); + bukkitBlocks.add(this.world.getWorld().getBlockAt(pos.getX(), pos.getY(), pos.getZ())); + // Paper end } @@ -104,5 +104,5 @@ index 402d8d7d63..7444f4621e 100644 } -- -2.18.0 +2.18.0.windows.1