Skip to content

Commit

Permalink
chore: dst
Browse files Browse the repository at this point in the history
  • Loading branch information
mcchampions committed Aug 28, 2024
1 parent d76186e commit edbb499
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ public class SlimefunItem implements Placeable {
@Getter
private BlockTicker blockTicker;

private String normalItemName;
private final String normalItemName;

/**
* This creates a new {@link SlimefunItem} from the given arguments.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
import java.util.Optional;
import javax.annotation.Nullable;

import me.mrCookieSlime.Slimefun.api.inventory.DirtyChestMenu;
import me.mrCookieSlime.Slimefun.api.item_transport.ItemTransportFlow;
import org.bukkit.Location;
import org.bukkit.block.Block;
import org.bukkit.block.BlockFace;
Expand Down Expand Up @@ -82,12 +80,6 @@ public void markCargoNodeConfigurationDirty(Location node) {
connectorCache.remove(node);
}

private void handleWithdraw(DirtyChestMenu menu, List<ItemStackAndInteger> items, Location l) {
for (int slot : menu.getPreset().getSlotsAccessedByItemTransport(menu, ItemTransportFlow.WITHDRAW, null)) {
filter(menu.getItemInSlot(slot), items, l);
}
}

private void filter(@Nullable ItemStack stack, List<ItemStackAndInteger> items, Location node) {
if (stack != null && CargoUtils.matchesFilter(this, node.getBlock(), stack)) {
boolean add = true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public void onCrafter(InventoryClickEvent e) {
}

if (e.getResult() == Event.Result.DENY) {
Slimefun.getLocalization().sendMessage((Player) e.getWhoClicked(), "crafter.not-working", true);
Slimefun.getLocalization().sendMessage(e.getWhoClicked(), "crafter.not-working", true);
}
}
}
Expand Down

0 comments on commit edbb499

Please sign in to comment.