Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Change PortalCreateEvent constructor ArrayList to Collection

  • Loading branch information...
commit 8512822bb7d0bdbcdadbcdae3d6af52f33137440 1 parent 58faa98
@grum grum authored
Showing with 3 additions and 2 deletions.
  1. +3 −2 src/main/java/org/bukkit/event/world/PortalCreateEvent.java
View
5 src/main/java/org/bukkit/event/world/PortalCreateEvent.java
@@ -4,6 +4,7 @@
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 @@
private boolean cancel = false;
private ArrayList<Block> blocks = new ArrayList<Block>();
- public PortalCreateEvent(final ArrayList<Block> blocks, final World world) {
+ public PortalCreateEvent(final Collection<Block> blocks, final World world) {
super(Type.PORTAL_CREATE, world);
- this.blocks = blocks;
+ this.blocks.addAll(blocks);
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.