… | |
… | |
59 | |
59 | |
60 | } elsif ($k eq "facecache") { |
60 | } elsif ($k eq "facecache") { |
61 | $setup{$k} = 1; |
61 | $setup{$k} = 1; |
62 | |
62 | |
63 | } elsif ($k eq "faceset") { |
63 | } elsif ($k eq "faceset") { |
64 | $v = int cf::clamp $v, 0, 2; |
|
|
65 | $ns->faceset ($v); |
64 | $ns->faceset (0); |
66 | $setup{$k} = $v; |
65 | $setup{$k} = 0; |
67 | # $ns->image2 (1) |
66 | # $ns->image2 (1) |
68 | |
67 | |
69 | } elsif ($k eq "tileset") { |
68 | } elsif ($k eq "tileset") { |
70 | $setup{$k} = $ns->faceset ($v & 1); |
69 | $setup{$k} = $ns->faceset (int cf::clamp $v, 0, 2); |
71 | |
70 | |
72 | } elsif ($k eq "itemcmd") { |
71 | } elsif ($k eq "itemcmd") { |
73 | # Version of the item protocol command to use. Currently, |
72 | # Version of the item protocol command to use. Currently, |
74 | # only supported versions are 1 and 2. Using a numeric |
73 | # only supported versions are 1 and 2. Using a numeric |
75 | # value will make it very easy to extend this in the future. |
74 | # value will make it very easy to extend this in the future. |