diff options
| author | hannibal2 <24389977+hannibal00212@users.noreply.github.com> | 2022-08-17 09:38:24 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-17 09:38:24 +0200 |
| commit | 5d2aa40fdee044c0579f426bff279b9d631e306f (patch) | |
| tree | 9596afb42da307f874b0bb06ae5aeeae04465aea /src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java | |
| parent | 1d23d88488f1266538275e3c069916c1fec58281 (diff) | |
| download | notenoughupdates-5d2aa40fdee044c0579f426bff279b9d631e306f.tar.gz notenoughupdates-5d2aa40fdee044c0579f426bff279b9d631e306f.tar.bz2 notenoughupdates-5d2aa40fdee044c0579f426bff279b9d631e306f.zip | |
Probably fixing Lag spikes (#229)
* using method getOpenChestName instead of field lastOpenContainerName
* probably fixing lag spikes in power stone stats display
* using new getOpenChestName in EnchantingSolvers
Diffstat (limited to 'src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java')
| -rw-r--r-- | src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java index 5d6af2aa..d7b80a0e 100644 --- a/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java +++ b/src/main/java/io/github/moulberry/notenoughupdates/util/Utils.java @@ -1978,4 +1978,8 @@ public class Utils { } return -1; } + + public static String getOpenChestName() { + return SBInfo.getInstance().currentlyOpenChestName; + } } |
