Browse files

Little bug fixed.

  • Loading branch information...
1 parent 67a0537 commit 8a43759f0fc2786c65d2dac1c65b2f8688a0df18 @Dykam committed Aug 25, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/en/trudan/ConstructionSites/Data/MaterialStorage.java
View
2 src/en/trudan/ConstructionSites/Data/MaterialStorage.java
@@ -94,7 +94,7 @@ public void addMaterial(ItemStack is){
byte data = (byte)(blockdata % 255);
Material material = Material.getMaterial(blockdata/255);
- for(int amount = ms.get(blockdata); amount > 0 && i < 54; amount -= 64, i++)
+ for(int amount = ms.get(blockdata); amount > 0 && i < 54; amount -= material.getMaxStackSize(), i++)
chest[i] = new ItemStack(material, mat, data, data);
}

0 comments on commit 8a43759

Please sign in to comment.