Skip to content

Commit

Permalink
fix: ⛑️add ability to touch Nether portal for non-creative players
Browse files Browse the repository at this point in the history
  • Loading branch information
Krutoy242 committed Mar 1, 2024
1 parent 1f16688 commit fd82104
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/do/portal_spread/touch.zs
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ events.onPlayerRightClickBlock(function (e as crafttweaker.event.PlayerInteractB
if (isNull(world) || world.remote || e.hand != 'MAIN_HAND') return;

val player as IPlayer = e.player;
if (isNull(player) || !player.creative) return;
if (isNull(player)) return;

val currentItem = e.item;
if (!isNull(currentItem)) return;
Expand Down

0 comments on commit fd82104

Please sign in to comment.