diff --git a/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java b/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java index 99e9fdf48b..7f4f8bced6 100644 --- a/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java +++ b/paper-api/src/main/java/org/bukkit/event/world/PortalCreateEvent.java @@ -4,6 +4,7 @@ import org.bukkit.block.Block; import org.bukkit.World; import org.bukkit.event.Cancellable; import java.util.ArrayList; +import java.util.Collection; /** * Called when the world attempts to create a matching end to a portal @@ -12,9 +13,9 @@ public class PortalCreateEvent extends WorldEvent implements Cancellable { private boolean cancel = false; private ArrayList blocks = new ArrayList(); - public PortalCreateEvent(final ArrayList blocks, final World world) { + public PortalCreateEvent(final Collection blocks, final World world) { super(Type.PORTAL_CREATE, world); - this.blocks = blocks; + this.blocks.addAll(blocks); } /**