mirror of
https://github.com/TicTicBoooom-Mods/MasterfulMachinery.git
synced 2026-03-18 21:40:34 +01:00
pushes
This commit is contained in:
@@ -109,6 +109,10 @@ public class MachinePortBlock extends Block implements BlockStarlightRecipient {
|
|||||||
TileEntity tile = world.getTileEntity(blockPos);
|
TileEntity tile = world.getTileEntity(blockPos);
|
||||||
if (tile instanceof MachinePortBlockEntity){
|
if (tile instanceof MachinePortBlockEntity){
|
||||||
PortStorage storage = ((MachinePortBlockEntity) tile).getStorage();
|
PortStorage storage = ((MachinePortBlockEntity) tile).getStorage();
|
||||||
|
if (!((MachinePortBlockEntity) tile).isInput()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (storage instanceof StarlightPortStorage) {
|
if (storage instanceof StarlightPortStorage) {
|
||||||
StarlightPortStorage starlightStorage = (StarlightPortStorage) storage;
|
StarlightPortStorage starlightStorage = (StarlightPortStorage) storage;
|
||||||
int rec = new Double(v).intValue();
|
int rec = new Double(v).intValue();
|
||||||
|
|||||||
Reference in New Issue
Block a user