Fixed a few out of bounds exceptions in TileEngineeringTable

This commit is contained in:
Robert S 2014-11-12 14:58:27 -05:00
parent b24daeaa2c
commit 4272a0e850

View file

@ -261,7 +261,7 @@ class TileEngineeringTable extends TileInventory(Material.wood) with IPacketRece
{
playerSlots = new Array[Int](invPlayer.getSizeInventory)
for (i <- 0 to playerSlots.length)
for (i <- 0 until playerSlots.length)
{
playerSlots(i) = i + TileEngineeringTable.CRAFTING_OUTPUT_END
@ -451,7 +451,7 @@ class TileEngineeringTable extends TileInventory(Material.wood) with IPacketRece
{
val inventoryCrafting: InventoryCrafting = new InventoryCrafting(new ContainerDummy(this), 3, 3)
for (i <- 0 to this.craftingMatrix.length)
for (i <- 0 until this.craftingMatrix.length)
{
inventoryCrafting.setInventorySlotContents(i, this.craftingMatrix(i))
}