mirror of
https://github.com/PurpurMC/Purpur.git
synced 2026-02-17 16:37:43 +01:00
19 lines
885 B
Diff
19 lines
885 B
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: William Blake Galbreath <Blake.Galbreath@GMail.com>
|
|
Date: Wed, 1 Jan 2020 20:12:39 -0600
|
|
Subject: [PATCH] Add obfhelpers for plugin use
|
|
|
|
|
|
diff --git a/src/main/java/net/minecraft/world/item/ItemStack.java b/src/main/java/net/minecraft/world/item/ItemStack.java
|
|
index 366ceb65d40c685117d1c79a933864ab91d8aa11..a342174cf35ee6ac1f10028b60c5a19e1b547ef4 100644
|
|
--- a/src/main/java/net/minecraft/world/item/ItemStack.java
|
|
+++ b/src/main/java/net/minecraft/world/item/ItemStack.java
|
|
@@ -694,6 +694,7 @@ public final class ItemStack {
|
|
return this.tag;
|
|
}
|
|
|
|
+ public NBTTagCompound getOrCreateSubTag(String s) { return a(s); } // Purpur - OBFHELPER
|
|
public NBTTagCompound a(String s) {
|
|
if (this.tag != null && this.tag.hasKeyOfType(s, 10)) {
|
|
return this.tag.getCompound(s);
|