… | |
… | |
21 | $ns->mapinfocmd ($v); |
21 | $ns->mapinfocmd ($v); |
22 | |
22 | |
23 | } elsif ($k eq "extcmd") { |
23 | } elsif ($k eq "extcmd") { |
24 | $ns->extcmd (min 2, $v); |
24 | $ns->extcmd (min 2, $v); |
25 | |
25 | |
26 | } elsif ($k eq "faceset") { |
|
|
27 | $ns->faceset (0); |
|
|
28 | $setup->{$k} = 0; |
|
|
29 | # $ns->image2 (1) |
|
|
30 | |
|
|
31 | } elsif ($k eq "tileset") { |
26 | } elsif ($k eq "tileset") { |
32 | $setup->{$k} = $ns->faceset (int cf::clamp $v, 0, 2); |
27 | $setup->{$k} = $ns->tileset (int cf::clamp $v, 0, 2); |
33 | |
28 | |
34 | } elsif ($k eq "itemcmd") { |
29 | } elsif ($k eq "itemcmd") { |
35 | # Version of the item protocol command to use. Currently, |
30 | # Version of the item protocol command to use. Currently, |
36 | # only supported versions are 1 and 2. Using a numeric |
31 | # only supported versions are 1 and 2. Using a numeric |
37 | # value will make it very easy to extend this in the future. |
32 | # value will make it very easy to extend this in the future. |