diff options
author | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-05-25 12:16:57 +1000 |
---|---|---|
committer | Alkalus <3060479+draknyte1@users.noreply.github.com> | 2018-05-25 12:16:57 +1000 |
commit | 2b73e75c4de865c05c5cb48bc9e91b1754a37c0c (patch) | |
tree | 99bb61b1857500a3d313417fd948acc7ce4cedd4 /src/Java/gtPlusPlus/xmod/gregtech/common/helpers | |
parent | 83a72ed129bafdf25ab87e45521a1a22a3afc23e (diff) | |
download | GT5-Unofficial-2b73e75c4de865c05c5cb48bc9e91b1754a37c0c.tar.gz GT5-Unofficial-2b73e75c4de865c05c5cb48bc9e91b1754a37c0c.tar.bz2 GT5-Unofficial-2b73e75c4de865c05c5cb48bc9e91b1754a37c0c.zip |
+ 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.
Diffstat (limited to 'src/Java/gtPlusPlus/xmod/gregtech/common/helpers')
-rw-r--r-- | src/Java/gtPlusPlus/xmod/gregtech/common/helpers/CraftingHelper.java | 3 |
1 files changed, 2 insertions, 1 deletions
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(); |