From 2b73e75c4de865c05c5cb48bc9e91b1754a37c0c Mon Sep 17 00:00:00 2001 From: Alkalus <3060479+draknyte1@users.noreply.github.com> Date: Fri, 25 May 2018 12:16:57 +1000 Subject: + Added a WeakRef type Automap. + Added getClassByName(String) to ReflectionUtils.java. + Added lots of handlers to ThaumcraftUtils.java. $ Improved Fake Player handling to only now be held by weak references. Should prevent worlds staying loaded. --- src/Java/gtPlusPlus/xmod/gregtech/common/helpers/CraftingHelper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common/helpers') diff --git a/src/Java/gtPlusPlus/xmod/gregtech/common/helpers/CraftingHelper.java b/src/Java/gtPlusPlus/xmod/gregtech/common/helpers/CraftingHelper.java index 4fb2cd1aa4..e06636e168 100644 --- a/src/Java/gtPlusPlus/xmod/gregtech/common/helpers/CraftingHelper.java +++ b/src/Java/gtPlusPlus/xmod/gregtech/common/helpers/CraftingHelper.java @@ -32,7 +32,8 @@ public class CraftingHelper{ mPosY = AC.getBaseMetaTileEntity().getYCoord(); mPosZ = AC.getBaseMetaTileEntity().getZCoord(); //Create Fake player to handle crating. - player = FakePlayerFactory.get((WorldServer) world, CORE.gameProfile); + + player = CORE.getFakePlayer(world); //Set storage container inventory = new AC_Helper_Container(player.inventory, world, mPosX, mPosY, mPosZ); mInventoryName = inventory.getMatrix().getInventoryName(); -- cgit