mirror of
https://github.com/GTNewHorizons/AE2FluidCraft-Rework.git
synced 2026-11-17 10:55:06 +00:00
Constant NBT tag name
This commit is contained in:
2 files changed
+34
-27
No files matched your search
+3
-3
@@ -25,11 +25,11 @@ public class LevelMaintainerWailaDataProvider extends BaseWailaDataProvider {
|
||||
final TileEntity te = accessor.getTileEntity();
|
||||
if (te instanceof TileLevelMaintainer tileLevelMaintainer) {
|
||||
NBTTagCompound data = accessor.getNBTData();
|
||||
if (data.hasKey("Requests")) {
|
||||
NBTTagList tagList = data.getTagList("Requests", Constants.NBT.TAG_COMPOUND);
|
||||
if (data.hasKey(TileLevelMaintainer.NBT_REQUESTS)) {
|
||||
NBTTagList tagList = data.getTagList(TileLevelMaintainer.NBT_REQUESTS, Constants.NBT.TAG_COMPOUND);
|
||||
for (int i = 0; i < tagList.tagCount(); i++) {
|
||||
NBTTagCompound tag = tagList.getCompoundTagAt(i);
|
||||
if (tag == null || !tag.hasKey("stack")) continue;
|
||||
if (tag == null || !tag.hasKey(TileLevelMaintainer.NBT_STACK)) continue;
|
||||
|
||||
TileLevelMaintainer.RequestInfo request = new TileLevelMaintainer.RequestInfo(
|
||||
tag,
|
||||
|
||||
Reference in new issue
Block a user