parent
a38b20b1c5
commit
19e52bda45
@ -1,7 +1,9 @@
|
|||||||
using System;
|
using System;
|
||||||
using TrueCraft.API.Logic;
|
using TrueCraft.API.Logic;
|
||||||
using TrueCraft.API;
|
using TrueCraft.API;
|
||||||
|
using TrueCraft.API.Networking;
|
||||||
|
using TrueCraft.API.World;
|
||||||
|
using TrueCraft.Core.Logic.Blocks;
|
||||||
|
|
||||||
namespace TrueCraft.Core.Logic.Items
|
namespace TrueCraft.Core.Logic.Items
|
||||||
{
|
{
|
||||||
@ -39,5 +41,14 @@ namespace TrueCraft.Core.Logic.Items
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public override void ItemUsedOnBlock(Coordinates3D coordinates, ItemStack item, BlockFace face, IWorld world, IRemoteClient user)
|
||||||
|
{
|
||||||
|
coordinates += MathHelper.BlockFaceToCoordinates(face);
|
||||||
|
if (world.GetBlockID(coordinates) == AirBlock.BlockID)
|
||||||
|
{
|
||||||
|
world.SetBlockID(coordinates, FireBlock.BlockID);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user