mirror of
https://github.com/StarWishsama/Slimefun4.git
synced 2024-09-20 03:35:51 +00:00
Update src/main/java/io/github/thebusybiscuit/slimefun4/implementation/listeners/crafting/SmithingTableListener.java
Co-authored-by: Daniel Walsh <walshydev@gmail.com>
This commit is contained in:
parent
83a4d1b65d
commit
002a0e3e46
@ -30,7 +30,7 @@ public class SmithingTableListener implements SlimefunCraftingListener {
|
|||||||
if (e.getInventory().getType() == InventoryType.SMITHING && e.getRawSlot() == 2 && e.getWhoClicked() instanceof Player) {
|
if (e.getInventory().getType() == InventoryType.SMITHING && e.getRawSlot() == 2 && e.getWhoClicked() instanceof Player) {
|
||||||
ItemStack materialItem = e.getInventory().getContents()[1];
|
ItemStack materialItem = e.getInventory().getContents()[1];
|
||||||
|
|
||||||
// Checks if the Item in the Material/Netherite slot is allowed to be used.
|
// Checks if the item in the Material/Netherite slot is allowed to be used.
|
||||||
if (isUnallowed(materialItem)) {
|
if (isUnallowed(materialItem)) {
|
||||||
e.setResult(Result.DENY);
|
e.setResult(Result.DENY);
|
||||||
Slimefun.getLocalization().sendMessage(e.getWhoClicked(), "smithing_table.not-working", true);
|
Slimefun.getLocalization().sendMessage(e.getWhoClicked(), "smithing_table.not-working", true);
|
||||||
|
Loading…
Reference in New Issue
Block a user