Fix some of the things that were broken, add more type-specs.

This commit is contained in:
Ben Spiers committed 2016-02-08 22:46:06 +00:00
1 parent 7440adb103
commit 7b4fefeb60
55 files changed
+152 -118

No files matched your search

+1 -1
View File
@@ -227,7 +227,7 @@ public class Coord4D extends BlockPos
*/
public Coord4D offset(EnumFacing facing, int n)
{
return n == 0 ? this : new Coord4D(this.getX() + facing.getFrontOffsetX() * n, this.getY() + facing.getFrontOffsetY() * n, this.getZ() + facing.getFrontOffsetZ() * n);
return (facing == null || n == 0) ? this : new Coord4D(this.getX() + facing.getFrontOffsetX() * n, this.getY() + facing.getFrontOffsetY() * n, this.getZ() + facing.getFrontOffsetZ() * n);
}
public ItemStack getStack(IBlockAccess world)