Can now place storage monitors on Secure Networks.

This commit is contained in:
AlgorithmX2 2014-02-09 12:36:17 -06:00
parent 2f37b41eeb
commit a758412006

View file

@ -59,6 +59,8 @@ public class PartStorageMonitor extends PartMonitor implements IPartStorageMonit
@Override
public void onPlacement(EntityPlayer player, ItemStack held, ForgeDirection side)
{
super.onPlacement( player, held, side );
byte rotation = (byte) (MathHelper.floor_double( (double) ((player.rotationYaw * 4F) / 360F) + 2.5D ) & 3);
if ( side == ForgeDirection.UP )
spin = rotation;