mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-23 04:24:16 -04:00
Fix overflow for large stack sizes in storeInterfacePattern
(#146)
Co-authored-by: Julia Dijkstra <julia.dijkstra@technolution.nl>
This commit is contained in:
parent
0633b32698
commit
792d589047
@ -116,6 +116,7 @@ object DriverBlockInterface extends DriverSidedTileEntity {
|
||||
throw new IllegalArgumentException("Invalid index!")
|
||||
val stackNBT = nbt.getCompoundTagAt(index)
|
||||
val stack = ItemStack.loadItemStackFromNBT(stackNBT)
|
||||
stack.stackSize = 1;
|
||||
DatabaseAccess.withDatabase(node, args.checkString(2), database => {
|
||||
val slot = args.optSlot(database.data, 3, 0)
|
||||
database.setStackInSlot(slot, stack)
|
||||
|
Loading…
x
Reference in New Issue
Block a user