Skip to content

Commit 9b40237

Browse files
committed
NBT Stuff and some fixes
1 parent 8fefa16 commit 9b40237

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/main/java/com/redcrafter07/ultrautilities/tileentity/LightningConcentratorTile.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ public LightningConcentratorTile(TileEntityType<?> tileEntityType) {
3333
}
3434

3535
public LightningConcentratorTile() {
36-
this(ModTileEntities.OVERLOAD_STATION_TILE.get());
36+
this(ModTileEntities.LIGHTNING_CONCENTRATOR_TILE.get());
3737
}
3838

3939
@Override
4040
public void read(BlockState blockState, CompoundNBT nbt) {
41-
itemHandler.deserializeNBT((CompoundNBT) nbt.get("craftingStationContents"));
41+
itemHandler.deserializeNBT(nbt.getCompound("lightningConcentratorContents"));
4242
super.read(blockState, nbt);
4343
}
4444

4545
@Override
4646
public CompoundNBT write(CompoundNBT nbt) {
47-
nbt.put("craftingStationContents", itemHandler.serializeNBT());
47+
nbt.put("lightningConcentratorContents", itemHandler.serializeNBT());
4848
return super.write(nbt);
4949
}
5050

@@ -62,7 +62,6 @@ public boolean isItemValid(int slot, @Nonnull ItemStack stack) {
6262
case 1:
6363
case 3:
6464
case 4:
65-
return stack.getItem() == ModItems.POWERED_OVERLOAD_PROCESSOR.get();
6665
default: return true;
6766
}
6867
}

0 commit comments

Comments
 (0)