mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-24 22:04:49 +00:00
Merge branch 'development' into v9
* development: Fixed Metallurgic Infuser slots, added new helper UpdateProtocol methods
This commit is contained in:
commit
66cc62a600
2 files changed
+13
-4
No files matched your search
@@ -75,7 +75,7 @@ public class ContainerMetallurgicInfuser extends Container
|
||||
{
|
||||
if(InfuseRegistry.getObject(slotStack) != null && (tileEntity.infuseStored.type == null || tileEntity.infuseStored.type == InfuseRegistry.getObject(slotStack).type))
|
||||
{
|
||||
if(!mergeItemStack(slotStack, 1, 2, false))
|
||||
if(!mergeItemStack(slotStack, 0, 1, false))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
@@ -89,7 +89,7 @@ public class ContainerMetallurgicInfuser extends Container
|
||||
}
|
||||
else if(isInputItem(slotStack))
|
||||
{
|
||||
if(!mergeItemStack(slotStack, 2, 3, false))
|
||||
if(!mergeItemStack(slotStack, 1, 2, false))
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -200,13 +200,17 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
||||
|
||||
if(structure.locations.contains(Coord4D.get(pointer)) && isCorrectCorner(Coord4D.get(tile), origX+xmin, origY+ymin, origZ+zmin))
|
||||
{
|
||||
structureFound = structure;
|
||||
return;
|
||||
if(isInteriorValid(structure))
|
||||
{
|
||||
structureFound = structure;
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
innerNodes.clear();
|
||||
iteratedNodes.add(tile);
|
||||
|
||||
for(ForgeDirection side : ForgeDirection.VALID_DIRECTIONS)
|
||||
@@ -222,6 +226,11 @@ public abstract class UpdateProtocol<T extends SynchronizedData<T>>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public boolean isInteriorValid(T structure)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
public ForgeDirection getSide(Coord4D obj, int xmin, int xmax, int ymin, int ymax, int zmin, int zmax)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user