Skip to content

Commit

Permalink
Fixed it with a better (i.e less expensive) check which I had origina…
Browse files Browse the repository at this point in the history
…lly suggested

Ig this is partly my fault, but its fixed now
  • Loading branch information
Ghoulboy78 committed Jun 28, 2021
1 parent 748c2c0 commit 586e5fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion programs/survival/lava_sponge.sc
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ __config() -> (


__on_player_places_block(player, item_tuple, hand, block)->(
if(hand == 'mainhand' && item_tuple:0 == 'sponge' && neighbours(pos(block))~'lava' != null,
if(hand=='mainhand' && item_tuple:0=='sponge' && any(neighbours(pos(block)), _=='lava'),
set(pos(block),'wet_sponge');
count = 0;
recursion = 0;
Expand Down

0 comments on commit 586e5fe

Please sign in to comment.