mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 08:27:43 +01:00
Fix error for items without attributes
This commit is contained in:
@@ -5,7 +5,7 @@ Subject: [PATCH] Config for grindstones to remove item attributes
|
||||
|
||||
|
||||
diff --git a/src/main/java/net/minecraft/world/inventory/GrindstoneMenu.java b/src/main/java/net/minecraft/world/inventory/GrindstoneMenu.java
|
||||
index f061ea886b8e87a5b24567f5f3f80187e711dc5b..24dc7535ca60ba49666b45c8cf6327ce0541ca1a 100644
|
||||
index f061ea886b8e87a5b24567f5f3f80187e711dc5b..a0d56616d099de0bfc28818dd4d106156fa074a4 100644
|
||||
--- a/src/main/java/net/minecraft/world/inventory/GrindstoneMenu.java
|
||||
+++ b/src/main/java/net/minecraft/world/inventory/GrindstoneMenu.java
|
||||
@@ -268,6 +268,14 @@ public class GrindstoneMenu extends AbstractContainerMenu {
|
||||
@@ -13,7 +13,7 @@ index f061ea886b8e87a5b24567f5f3f80187e711dc5b..24dc7535ca60ba49666b45c8cf6327ce
|
||||
}
|
||||
|
||||
+ // Purpur start
|
||||
+ if (org.purpurmc.purpur.PurpurConfig.grindstoneRemoveAttributes) {
|
||||
+ if (org.purpurmc.purpur.PurpurConfig.grindstoneRemoveAttributes && itemstack1.getTag() != null) {
|
||||
+ for (String key : itemstack1.getTag().getAllKeys()) {
|
||||
+ itemstack1.getTag().remove(key);
|
||||
+ }
|
||||
|
||||
Reference in New Issue
Block a user