1
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:
Sefiraat 2021-09-14 07:07:58 +01:00 committed by GitHub
parent 83a4d1b65d
commit 002a0e3e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);