From 170b014f52f47b1ee49c281fa0a725f01b8182db Mon Sep 17 00:00:00 2001 From: Brianna Date: Mon, 8 Jul 2019 17:00:02 -0400 Subject: [PATCH] Updated portal create event method. --- .gitlab-ci.yml | 2 +- .../com/songoda/epicanchors/listeners/BlockListeners.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index a4b958a..3d98b64 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -4,7 +4,7 @@ stages: variables: name: "EpicAnchors" path: "/builds/$CI_PROJECT_PATH" - version: "1.3.1" + version: "1.3.2" build: stage: build diff --git a/src/main/java/com/songoda/epicanchors/listeners/BlockListeners.java b/src/main/java/com/songoda/epicanchors/listeners/BlockListeners.java index 5c4e037..f1b2875 100644 --- a/src/main/java/com/songoda/epicanchors/listeners/BlockListeners.java +++ b/src/main/java/com/songoda/epicanchors/listeners/BlockListeners.java @@ -7,7 +7,7 @@ import org.bukkit.Material; import org.bukkit.event.EventHandler; import org.bukkit.event.Listener; import org.bukkit.event.block.BlockPlaceEvent; -import org.bukkit.event.entity.EntityCreatePortalEvent; +import org.bukkit.event.world.PortalCreateEvent; import org.bukkit.inventory.ItemStack; public class BlockListeners implements Listener { @@ -37,7 +37,7 @@ public class BlockListeners implements Listener { } @EventHandler - public void onPortalCreation(EntityCreatePortalEvent e) { + public void onPortalCreation(PortalCreateEvent e) { if (e.getBlocks().size() < 1) return; if (plugin.getAnchorManager().isAnchor(e.getBlocks().get(0).getLocation())) e.setCancelled(true); }