Can now place storage monitors on Secure Networks.
This commit is contained in:
@@ -59,6 +59,8 @@ public class PartStorageMonitor extends PartMonitor implements IPartStorageMonit
|
|||||||
@Override
|
@Override
|
||||||
public void onPlacement(EntityPlayer player, ItemStack held, ForgeDirection side)
|
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);
|
byte rotation = (byte) (MathHelper.floor_double( (double) ((player.rotationYaw * 4F) / 360F) + 2.5D ) & 3);
|
||||||
if ( side == ForgeDirection.UP )
|
if ( side == ForgeDirection.UP )
|
||||||
spin = rotation;
|
spin = rotation;
|
||||||
|
|||||||
Reference in New Issue
Block a user