Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Little bug fixed.

  • Loading branch information...
commit 8a43759f0fc2786c65d2dac1c65b2f8688a0df18 1 parent 67a0537
@Dykam authored
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);
}
Please sign in to comment.
Something went wrong with that request. Please try again.