mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 21:39:40 +00:00
Fix StackSearcher using variable side before initializing it. Fixes #2844
This commit is contained in:
1 parent
94be300959
commit
9cb67fa054
1 file changed
+1
-1
@@ -18,6 +18,7 @@ public class StackSearcher
|
||||
public StackSearcher(IInventory inventory, ForgeDirection direction)
|
||||
{
|
||||
theInventory = InventoryUtils.checkChestInv(inventory);
|
||||
side = direction;
|
||||
if(!(theInventory instanceof ISidedInventory))
|
||||
{
|
||||
i = inventory.getSizeInventory();
|
||||
@@ -30,7 +31,6 @@ public class StackSearcher
|
||||
i = slots.length;
|
||||
}
|
||||
}
|
||||
side = direction;
|
||||
}
|
||||
|
||||
public InvStack takeTopStack(Finder id)
|
||||
|
||||
Reference in new issue
Block a user