mirror of
https://github.com/curioustorvald/Terrarum.git
synced 2026-06-14 20:44:05 +09:00
fixed the GameWorld's tilenumbermap which prevented the new world to be created
This commit is contained in:
@@ -223,7 +223,10 @@ open class GameWorld(
|
|||||||
|
|
||||||
// AN EXCEPTIONAL TERM: tilenum 0 is always redirected to Air tile, even if the tilenum for actual Air tile is not zero
|
// AN EXCEPTIONAL TERM: tilenum 0 is always redirected to Air tile, even if the tilenum for actual Air tile is not zero
|
||||||
tileNumberToNameMap[0] = Block.AIR
|
tileNumberToNameMap[0] = Block.AIR
|
||||||
|
tileNameToNumberMap[Block.AIR] = 0
|
||||||
|
|
||||||
tileNumberToNameMap[2] = Block.UPDATE
|
tileNumberToNameMap[2] = Block.UPDATE
|
||||||
|
tileNameToNumberMap[Block.UPDATE] = 2
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -254,7 +257,10 @@ open class GameWorld(
|
|||||||
|
|
||||||
// AN EXCEPTIONAL TERM: tilenum 0 is always redirected to Air tile, even if the tilenum for actual Air tile is not zero
|
// AN EXCEPTIONAL TERM: tilenum 0 is always redirected to Air tile, even if the tilenum for actual Air tile is not zero
|
||||||
tileNumberToNameMap[0] = Block.AIR
|
tileNumberToNameMap[0] = Block.AIR
|
||||||
|
tileNameToNumberMap[Block.AIR] = 0
|
||||||
|
|
||||||
tileNumberToNameMap[2] = Block.UPDATE
|
tileNumberToNameMap[2] = Block.UPDATE
|
||||||
|
tileNameToNumberMap[Block.UPDATE] = 2
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user