mirror of
https://github.com/minetest/minetest.git
synced 2024-11-24 00:23:46 +01:00
Schematics: Fix probability values for .mts version 1
This commit is contained in:
parent
c5b4e54174
commit
eaef678e0b
@ -282,7 +282,7 @@ bool Schematic::deserializeFromMts(std::istream *is,
|
|||||||
if (version < 2) {
|
if (version < 2) {
|
||||||
for (size_t i = 0; i != nodecount; i++) {
|
for (size_t i = 0; i != nodecount; i++) {
|
||||||
if (schemdata[i].param1 == 0)
|
if (schemdata[i].param1 == 0)
|
||||||
schemdata[i].param1 = MTSCHEM_PROB_ALWAYS;
|
schemdata[i].param1 = MTSCHEM_PROB_ALWAYS_OLD;
|
||||||
if (have_cignore && schemdata[i].getContent() == cignore)
|
if (have_cignore && schemdata[i].getContent() == cignore)
|
||||||
schemdata[i].param1 = MTSCHEM_PROB_NEVER;
|
schemdata[i].param1 = MTSCHEM_PROB_NEVER;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user