From 15019d1c6707dfc858287f0ef06332793fd51ebe Mon Sep 17 00:00:00 2001 From: Jared Blackburn Date: Wed, 9 Jun 2021 09:39:43 -0400 Subject: [PATCH] Hopefully fixed rare instance of boss chest replaced by spawner --- main/java/jaredbgreat/dldungeons/Info.java | 2 +- .../dldungeons/planner/mapping/ChunkFeatures.java | 8 ++++---- main/resources/mcmod.info | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/main/java/jaredbgreat/dldungeons/Info.java b/main/java/jaredbgreat/dldungeons/Info.java index dab6b5f..6114df7 100644 --- a/main/java/jaredbgreat/dldungeons/Info.java +++ b/main/java/jaredbgreat/dldungeons/Info.java @@ -12,7 +12,7 @@ public final class Info { public static final String OLD_ID = "DLDungeonsJBG"; public static final String ID = "dldungeonsjbg"; public static final String NAME = "Doomlike Dungeons"; - public static final String VERSION = "1.14.4"; + public static final String VERSION = "1.14.5"; public static final String MINECRAFT = "1.12.2"; public static final String CHANNEL = "JBGDungeons"; public static final String LOG_NAME = "DLDUNGEONS"; diff --git a/main/java/jaredbgreat/dldungeons/planner/mapping/ChunkFeatures.java b/main/java/jaredbgreat/dldungeons/planner/mapping/ChunkFeatures.java index b70666c..9e5014f 100644 --- a/main/java/jaredbgreat/dldungeons/planner/mapping/ChunkFeatures.java +++ b/main/java/jaredbgreat/dldungeons/planner/mapping/ChunkFeatures.java @@ -50,6 +50,10 @@ public void addEntrance(AbstractEntrance entrance) { * @param room */ public void buildTileEntites(Dungeon dungeon, MapMatrix map, int shiftX, int shiftZ) { + for(BasicChest chest : chests) { + RegisteredBlock.placeChest(map.world, shiftX + chest.mx, chest.my, shiftZ + chest.mz); + chest.place(map.world, shiftX + chest.mx, chest.my, shiftZ + chest.mz, dungeon.random); + } for(Spawner spawner : spawners) { RegisteredBlock.placeSpawner(map.world, shiftX + spawner.getX(), @@ -57,10 +61,6 @@ public void buildTileEntites(Dungeon dungeon, MapMatrix map, int shiftX, int shi shiftZ + spawner.getZ(), spawner.getMob()); } - for(BasicChest chest : chests) { - RegisteredBlock.placeChest(map.world, shiftX + chest.mx, chest.my, shiftZ + chest.mz); - chest.place(map.world, shiftX + chest.mx, chest.my, shiftZ + chest.mz, dungeon.random); - } } diff --git a/main/resources/mcmod.info b/main/resources/mcmod.info index f5034a8..d8adcb2 100644 --- a/main/resources/mcmod.info +++ b/main/resources/mcmod.info @@ -3,7 +3,7 @@ "modid": "dldungeonsjbg", "name": "Doomlike Dungeons", "description": "Procedurally generates multiroom dungeons resembling Doom levels into the world.", - "version": "1.14.4", + "version": "1.14.5", "mcversion": "1.12.2", "url": "http://www.minecraftforum.net/forums/mapping-and-modding/minecraft-mods/1293843-doomlike-dungeons", "updateUrl": "",