File tree Expand file tree Collapse file tree 2 files changed +18
-10
lines changed
src/main/java/com/glodblock/github/common/tile Expand file tree Collapse file tree 2 files changed +18
-10
lines changed Original file line number Diff line number Diff line change @@ -64,12 +64,16 @@ public int getPriority() {
6464 @ SuppressWarnings ("rawtypes" )
6565 @ Override
6666 public List <IMEInventoryHandler > getCellArray (IStorageChannel <?> channel ) {
67- if (getProxy ().isActive ()) {
68- if (channel == Util .getItemChannel ()) {
69- return Collections .singletonList (fluidDropInv .invHandler );
70- } else if (channel == Util .getFluidChannel ()) {
71- return Collections .singletonList (fluidCraftInv .invHandler );
67+ try {
68+ if (getProxy ().isActive () && getProxy ().getGrid ().getMachines (this .getClass ()).size () < 2 ) {
69+ if (channel == Util .getItemChannel ()) {
70+ return Collections .singletonList (fluidDropInv .invHandler );
71+ } else if (channel == Util .getFluidChannel ()) {
72+ return Collections .singletonList (fluidCraftInv .invHandler );
73+ }
7274 }
75+ } catch (GridAccessException e ) {
76+ //NO-OP
7377 }
7478 return Collections .emptyList ();
7579 }
Original file line number Diff line number Diff line change @@ -66,12 +66,16 @@ public int getPriority() {
6666 @ SuppressWarnings ("rawtypes" )
6767 @ Override
6868 public List <IMEInventoryHandler > getCellArray (IStorageChannel <?> channel ) {
69- if (getProxy ().isActive ()) {
70- if (channel == Util .getItemChannel ()) {
71- return Collections .singletonList (gasDropInv .invHandler );
72- } else if (channel == getGasChannel ()) {
73- return Collections .singletonList (gasCraftInv .invHandler );
69+ try {
70+ if (getProxy ().isActive () && getProxy ().getGrid ().getMachines (this .getClass ()).size () < 2 ) {
71+ if (channel == Util .getItemChannel ()) {
72+ return Collections .singletonList (gasDropInv .invHandler );
73+ } else if (channel == getGasChannel ()) {
74+ return Collections .singletonList (gasCraftInv .invHandler );
75+ }
7476 }
77+ } catch (GridAccessException e ) {
78+ //NO-OP
7579 }
7680 return Collections .emptyList ();
7781 }
You can’t perform that action at this time.
0 commit comments