Skip to content

Commit

Permalink
[ci skip] Merge pull request #195 from Sefiraat/fix/incorrect-transpo…
Browse files Browse the repository at this point in the history
…rt-slots

Fix incorrectly set transport slots
  • Loading branch information
Sefiraat authored Jul 19, 2024
2 parents 377b1ab + 456bd88 commit f20d01e
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public boolean canOpen(@Nonnull Block block, @Nonnull Player player) {

@Override
public int[] getSlotsAccessedByItemTransport(ItemTransportFlow flow) {
return new int[]{0};
return new int[0];
}

};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public int[] getSlotsAccessedByItemTransport(ItemTransportFlow flow) {
if (flow == ItemTransportFlow.INSERT) {
return new int[]{INPUT_SLOT};
}
return new int[]{0};
return new int[0];
}

};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ public boolean canOpen(@Nonnull Block block, @Nonnull Player player) {

@Override
public int[] getSlotsAccessedByItemTransport(ItemTransportFlow flow) {
return new int[]{0};
return new int[0];
}

};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,14 +200,14 @@ public void init() {

@Override
public boolean canOpen(@Nonnull Block block, @Nonnull Player player) {
return NetworkSlimefunItems.NETWORK_CELL.canUse(player, false)
return NetworkSlimefunItems.NETWORK_WIRELESS_TRANSMITTER.canUse(player, false)
&& Slimefun.getProtectionManager()
.hasPermission(player, block.getLocation(), Interaction.INTERACT_BLOCK);
}

@Override
public int[] getSlotsAccessedByItemTransport(ItemTransportFlow flow) {
return new int[]{0};
return new int[0];
}

};
Expand Down

0 comments on commit f20d01e

Please sign in to comment.