mirror of
https://github.com/Thorfusion/Mekanism-Community-Edition.git
synced 2026-11-23 21:39:40 +00:00
Merge branch 'development' into 1.8.9
This commit is contained in:
commit
0cb18773aa
1288 files changed
+11316
-7212
No files matched your search
@@ -68,6 +68,7 @@ import net.minecraftforge.fml.relauncher.SideOnly;
|
||||
* 1:6: Pressure Disperser
|
||||
* 1:7: Boiler Casing
|
||||
* 1:8: Boiler Valve
|
||||
* 1:9: Security Desk
|
||||
* @author AidanBrady
|
||||
*
|
||||
*/
|
||||
@@ -236,12 +237,20 @@ public class ItemBlockBasic extends ItemBlock implements IEnergizedItem, ITierIt
|
||||
@Override
|
||||
public boolean placeBlockAt(ItemStack stack, EntityPlayer player, World world, BlockPos pos, EnumFacing side, float hitX, float hitY, float hitZ, IBlockState metadata)
|
||||
{
|
||||
boolean place = super.placeBlockAt(stack, player, world, pos, side, hitX, hitY, hitZ, metadata);
|
||||
|
||||
if(place)
|
||||
boolean place = true;
|
||||
|
||||
BasicBlockType type = BasicBlockType.get(stack);
|
||||
|
||||
if(type == BasicType.SECURITY_DESK)
|
||||
{
|
||||
BasicBlockType type = BasicBlockType.get(stack);
|
||||
if(y+1 > 255 || !world.getBlock(x, y+1, z).isReplaceable(world, x, y+1, z))
|
||||
{
|
||||
place = false;
|
||||
}
|
||||
}
|
||||
|
||||
if(place && super.placeBlockAt(stack, player, world, x, y, z, side, hitX, hitY, hitZ, metadata))
|
||||
{
|
||||
if(type == BasicBlockType.BIN && stack.getTagCompound() != null)
|
||||
{
|
||||
TileEntityBin tileEntity = (TileEntityBin)world.getTileEntity(pos);
|
||||
|
||||
Reference in new issue
Block a user