Add support for furnace placement

This commit is contained in:
Drew DeVault 2015-05-30 16:55:53 -06:00
parent 5086565c41
commit 3aef2d3786

View File

@ -1,6 +1,8 @@
using System;
using TrueCraft.API.Logic;
using TrueCraft.API;
using TrueCraft.API.Networking;
using TrueCraft.API.World;
namespace TrueCraft.Core.Logic.Blocks
{
@ -57,6 +59,11 @@ namespace TrueCraft.Core.Logic.Blocks
{
get { return false; }
}
public override void BlockPlaced(BlockDescriptor descriptor, BlockFace face, IWorld world, IRemoteClient user)
{
world.SetMetadata(descriptor.Coordinates, (byte)MathHelper.DirectionByRotationFlat(user.Entity.Yaw, true));
}
}
public class LitFurnaceBlock : FurnaceBlock