Skip to content

Commit 590fa4f

Browse files
committed
Overload Station functionality
1 parent 816904a commit 590fa4f

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public OverloadStationTile(TileEntityType<?> tileEntityType) {
3131
}
3232

3333
public OverloadStationTile() {
34-
this(ModTileEntities.CRAFTING_STATION_TILE.get());
34+
this(ModTileEntities.OVERLOAD_STATION_TILE.get());
3535
}
3636

3737
@Override
@@ -59,6 +59,7 @@ public boolean isItemValid(int slot, @Nonnull ItemStack stack) {
5959
case 0:
6060
return stack.getItem() == ModItems.OVERLOAD_PROCESSOR.get();
6161
case 1:
62+
return stack.getItem() == ModItems.PROCESSOR_SWORD.get();
6263
default: return true;
6364
}
6465
}
@@ -91,15 +92,9 @@ public <T> LazyOptional<T> getCapability(@Nonnull Capability<T> cap, @Nullable D
9192

9293
@Override
9394
public void tick() {
94-
//if(world.isRemote) return;
95-
96-
System.out.println(itemHandler.getStackInSlot(0).getCount());
95+
if(world.isRemote) return;
9796

9897
if(itemHandler.getStackInSlot(0).getCount() != 0) {
99-
System.out.println(itemHandler.getStackInSlot(1).getItem().getName());
100-
101-
//if(item.getName().toString() != "processor_sword") return;
102-
10398
itemHandler.getStackInSlot(1).getItem().setDamage(itemHandler.getStackInSlot(1), itemHandler.getStackInSlot(1).getItem().getDamage(itemHandler.getStackInSlot(1)) - 1);
10499
}
105100
}

0 commit comments

Comments
 (0)