Fix issue with default getContainerItemStack

This commit is contained in:
LexManos 2012-08-15 02:09:21 -07:00
parent d9423a4f25
commit 4967683c9c

View file

@ -29,7 +29,7 @@
Vec3 var23 = var13.addVector((double)var18 * var21, (double)var17 * var21, (double)var20 * var21);
return par1World.rayTraceBlocks_do_do(var13, var23, par3, !par3);
}
@@ -650,4 +657,185 @@
@@ -650,4 +657,189 @@
{
StatList.initStats();
}
@ -212,6 +212,10 @@
+ */
+ public ItemStack getContainerItemStack(ItemStack itemStack)
+ {
+ if (!hasContainerItem())
+ {
+ return null;
+ }
+ return new ItemStack(getContainerItem());
+ }
}