Skip to content

Commit

Permalink
Make portal liquid blocks unable to generate new blocks
Browse files Browse the repository at this point in the history
Relates to issue #350
  • Loading branch information
Thorinwasher committed Jun 10, 2024
1 parent 72a4cf8 commit cae2fb5
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ public void onBlockExplode(BlockExplodeEvent event) {
public void onBlockFromTo(BlockFromToEvent event) {
Block toBlock = event.getToBlock();
Block fromBlock = event.getBlock();
if ((registry.getPortal(toBlock.getLocation(), GateStructureType.IRIS) != null) || (registry.getPortal(fromBlock.getLocation(), GateStructureType.IRIS) != null)) {
if ((registry.getPortal(toBlock.getLocation(), GateStructureType.IRIS) != null) || (registry.getPortal(fromBlock.getLocation()) != null)) {
event.setCancelled(true);
return;
}
Expand Down

0 comments on commit cae2fb5

Please sign in to comment.