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

Commit

Permalink
tweak code
Browse files Browse the repository at this point in the history
Former-commit-id: d1c4831
  • Loading branch information
Ghost-chu committed Jan 28, 2020
1 parent 0b7e740 commit d0c17f7
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions src/main/java/org/maxgamer/quickshop/Shop/DisplayItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,14 @@

package org.maxgamer.quickshop.Shop;

import com.bekvon.bukkit.residence.commands.contract;
import com.google.common.collect.Collections2;
import com.google.common.collect.Lists;
import com.google.gson.Gson;
import com.google.gson.JsonSyntaxException;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.Material;
import org.bukkit.entity.Entity;
Expand Down Expand Up @@ -226,12 +222,9 @@ static DisplayType getNowUsing(@Nullable ItemStack item) {
continue;
}
// list
Util.debugLog(itemSection.toString() + " @ LEVEL 2, " + itemSection.getClass().getName());
Util.debugLog(itemSection+ " @ LEVEL 2, " + itemSection.getClass().getName());
if (itemSection.getValue() instanceof List) {
List<?> infoSections = List.class.cast(itemSection.getValue());
if (infoSections == null) {
continue;
}
List<?> infoSections = (List<?>) itemSection.getValue();
for (Object $infoSection : infoSections) {
if ($infoSection == null) {
continue;
Expand Down

0 comments on commit d0c17f7

Please sign in to comment.