diff options
author | TimeConqueror <timeconqueror999@gmail.com> | 2021-07-15 02:53:54 +0300 |
---|---|---|
committer | TimeConqueror <timeconqueror999@gmail.com> | 2021-07-15 02:53:54 +0300 |
commit | 77f22e029303ba48f9aabad32367e500bdcefee3 (patch) | |
tree | 1e8d2753ef86908f64a759e4743a0ef2fa4925e6 /src/main/java/gregtech/common/gui | |
parent | 9f7fd2675139d4a575b6a1dc2fa1b472800a0757 (diff) | |
download | GT5-Unofficial-77f22e029303ba48f9aabad32367e500bdcefee3.tar.gz GT5-Unofficial-77f22e029303ba48f9aabad32367e500bdcefee3.tar.bz2 GT5-Unofficial-77f22e029303ba48f9aabad32367e500bdcefee3.zip |
Removed useless array creation in most #copy methods by changing them to #copyOrNull variant with single parameter.
Diffstat (limited to 'src/main/java/gregtech/common/gui')
-rw-r--r-- | src/main/java/gregtech/common/gui/GT_Container_Regulator.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/gregtech/common/gui/GT_Container_Regulator.java b/src/main/java/gregtech/common/gui/GT_Container_Regulator.java index f432c9b5d5..f50ac2dae3 100644 --- a/src/main/java/gregtech/common/gui/GT_Container_Regulator.java +++ b/src/main/java/gregtech/common/gui/GT_Container_Regulator.java @@ -81,7 +81,7 @@ public class GT_Container_Regulator extends GT_ContainerMetaTile_Machine { if ((aSlotIndex < 19)) { ItemStack tStack = aPlayer.inventory.getItemStack(); if (tStack != null) { - tSlot.putStack(GT_Utility.copy(new Object[]{tStack})); + tSlot.putStack(GT_Utility.copyOrNull(tStack)); } else if (tSlot.getStack() != null) { if (aMouseclick == 0) { tSlot.getStack().stackSize -= (aShifthold == 1 ? 8 : 1); |