Add support for furnace placement
This commit is contained in:
parent
5086565c41
commit
3aef2d3786
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user