Fixed conflict with other epic plugins.

This commit is contained in:
Brianna 2019-06-11 00:14:06 -04:00
parent e374dbfa60
commit 8bf55a3a0f
2 changed files with 4 additions and 1 deletions

View File

@ -4,7 +4,7 @@ stages:
variables:
name: "EpicAnchors"
path: "/builds/$CI_PROJECT_PATH"
version: "1.3"
version: "1.3.1"
build:
stage: build

View File

@ -2,6 +2,8 @@ package com.songoda.epicanchors.listeners;
import com.songoda.epicanchors.EpicAnchors;
import com.songoda.epicanchors.anchor.Anchor;
import com.songoda.epicanchors.utils.settings.Setting;
import org.bukkit.Material;
import org.bukkit.event.EventHandler;
import org.bukkit.event.Listener;
import org.bukkit.event.block.BlockPlaceEvent;
@ -23,6 +25,7 @@ public class BlockListeners implements Listener {
if (!item.hasItemMeta()
|| !item.getItemMeta().hasDisplayName()
|| Material.valueOf(Setting.MATERIAL.getString()) != event.getBlock().getType()
|| plugin.getTicksFromItem(item) == 0) return;
Anchor anchor = new Anchor(event.getBlock().getLocation(), plugin.getTicksFromItem(item));