Cleaned Up Code

Changed calls to canPlayerEdit() to pass hit.sideHit data with the
request. Also renamed several variables to make the code clearer.
Removed a custom implementation of the ray tracing call in BaseItemDoor
- we can use the built-in call from Minecraft there.
This commit is contained in:
SenseiKiwi
2013-09-05 11:36:59 -04:00
parent 22b7ed147a
commit 1138f6733e
5 changed files with 19 additions and 48 deletions

View File

@@ -60,7 +60,7 @@ public class ItemRiftSignature extends Item
//We don't check for replaceable blocks. The user can deal with that. <_<
y += 2; //Increase y by 2 to place the rift at head level
if (!player.canPlayerEdit(x, y, z, 0, stack))
if (!player.canPlayerEdit(x, y, z, side, stack))
{
return true;
}