From 4c23e5c7b8f267b4257e365f297afce7254d782c Mon Sep 17 00:00:00 2001 From: SenseiKiwi Date: Sat, 15 Jun 2013 07:24:28 -0400 Subject: [PATCH] Minor change to SchematicLoader Changed SchematicLoader to use DDLoot.DungeonChestInfo instead of requesting a reference to the same data through ChestGenHooks. Exactly the same data is being retrieved, but ChestGenHooks retrieves it by performing a lookup on a map relating loot categories to loot info, so it's slightly slower. No point in doing that if we have access to the reference directly. --- StevenDimDoors/mod_pocketDim/SchematicLoader.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/StevenDimDoors/mod_pocketDim/SchematicLoader.java b/StevenDimDoors/mod_pocketDim/SchematicLoader.java index 1b4a5ee5..78f4c30e 100644 --- a/StevenDimDoors/mod_pocketDim/SchematicLoader.java +++ b/StevenDimDoors/mod_pocketDim/SchematicLoader.java @@ -970,8 +970,7 @@ public class SchematicLoader if(world.getBlockTileEntity(i+xCooe, j+yCooe, k+zCooe) instanceof TileEntityChest) { TileEntityChest chest = (TileEntityChest) world.getBlockTileEntity(i+xCooe, j+yCooe, k+zCooe); - - ChestGenHooks info = ChestGenHooks.getInfo(DDLoot.DIMENSIONAL_DUNGEON_CHEST); + ChestGenHooks info = DDLoot.DungeonChestInfo; WeightedRandomChestContent.generateChestContents(rand, info.getItems(rand), (TileEntityChest)world.getBlockTileEntity(i+xCooe, j+yCooe, k+zCooe), info.getCount(rand)); } if(world.getBlockTileEntity(i+xCooe, j+yCooe, k+zCooe) instanceof TileEntityDispenser)