1
0
Fork 0
mirror of https://github.com/Acamaeda/The-Modding-Tree.git synced 2024-11-21 16:13:55 +00:00

Fixed minor oddities

This commit is contained in:
Harley White 2021-05-30 23:33:56 -04:00
parent 00a5c2f288
commit b5a850bbee
3 changed files with 7 additions and 4 deletions

View file

@ -1,5 +1,8 @@
# The Modding Tree changelog:
- Fixed demo.html
- Fixed certain things skipping negative rows (now they are treated like non-numeric rows, and don't appear in the tree still).
### v2.5.11.1 - 5/27/21
- Fixed issues caused when the tree tab is disabled.

View file

@ -10,9 +10,9 @@
<script src="https://cdn.jsdelivr.net/npm/vue@2.6.12"></script>
<script src="js/technical/break_eternity.js"></script>
<script src="js/technical/layerSupport.js"></script>
<script src="js/demo/demoTree.js"></script>
<script src="js/demo/demoLayers.js"></script>
<script src="js/demo/demoMod.js"></script>
<script src="js/Demo/demoTree.js"></script>
<script src="js/Demo/demoLayers.js"></script>
<script src="js/Demo/demoMod.js"></script>
<script src="js/technical/temp.js"></script>
<script src="js/technical/displays.js"></script>

View file

@ -200,7 +200,7 @@ function setupLayer(layer){
ROW_LAYERS[row][layer]=layer;
let position = (layers[layer].position !== undefined ? layers[layer].position : layer)
if (!isNaN(displayRow)) TREE_LAYERS[displayRow].push({layer: layer, position: position})
if (!isNaN(displayRow) || displayRow < 0) TREE_LAYERS[displayRow].push({layer: layer, position: position})
else OTHER_LAYERS[displayRow].push({layer: layer, position: position})
if (maxRow < layers[layer].displayRow) maxRow = layers[layer].displayRow