Skip to content
This repository has been archived by the owner on Dec 5, 2021. It is now read-only.

Commit

Permalink
Fix a bug
Browse files Browse the repository at this point in the history
Former-commit-id: f097ce1
  • Loading branch information
Ghost-chu committed Sep 22, 2018
1 parent 2ff19d7 commit 6495047
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions src/main/java/org/maxgamer/quickshop/Shop/DisplayItem.java
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
package org.maxgamer.quickshop.Shop;

import java.awt.List;
import java.util.ArrayList;
import java.util.logging.Level;

import org.bukkit.Chunk;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.configuration.file.FileConfiguration;
import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Item;
import org.bukkit.inventory.ItemStack;
Expand All @@ -17,7 +15,6 @@
import org.maxgamer.quickshop.QuickShop;
//import org.maxgamer.quickshop.Util.NMS;

import com.google.common.util.concurrent.ForwardingListenableFuture;

/**
* @author Netherfoam A display item, that spawns a block above the chest and
Expand Down Expand Up @@ -60,6 +57,7 @@ public void spawn() {
FileConfiguration config = plugin.getConfig();
if(config.getBoolean("float.enable")){
//Enabled! Check start!

//Item
boolean found_item = false;
boolean found_lore = false;
Expand Down Expand Up @@ -104,12 +102,11 @@ public void spawn() {
String itemname = iStack.getItemMeta().getDisplayName();
for (Object name : displaynamelist) {
String listname = String.valueOf(name);
if(listname.contains(listname)) {
if(itemname.contains(listname)) {
found_displayname = true;
break;
}
}

}
if(blacklist) {
if(found_displayname) {
Expand All @@ -126,6 +123,7 @@ public void spawn() {
//End DisplayName check
}

//Lore
if(config.getBoolean("float.lore.enable")) {
boolean blacklist = config.getBoolean("float.lore.blacklist");
lorelist.clear();
Expand Down

0 comments on commit 6495047

Please sign in to comment.