Merge remote-tracking branch 'origin/1.12' into 1.12

This commit is contained in:
Tschipp 2018-08-14 23:38:54 +02:00
commit 4e30e55f3a
3 changed files with 16 additions and 3 deletions

View File

@ -150,6 +150,21 @@ public class Configs {
"thaumcraft:infusion_matrix",
"thaumcraft:golem_builder",
"thaumcraft:thaumatorium*",
"magneticraft:oil_heater",
"magneticraft:solar_panel",
"magneticraft:steam_engine",
"magneticraft:shelving_unit",
"magneticraft:grinder",
"magneticraft:sieve",
"magneticraft:solar_tower",
"magneticraft:solar_mirror",
"magneticraft:container",
"magneticraft:pumpjack",
"magneticraft:solar_panel",
"magneticraft:refinery",
"magneticraft:oil_heater",
"magneticraft:hydraulic_press",
"magneticraft:multiblock_gap",
"refinedstorage:*",
"practicallogistics2:*",
"mcmultipart:*",

View File

@ -268,6 +268,7 @@ public class ItemEvents
TileEntity te = world.getTileEntity(pos);
if (PickupHandler.canPlayerPickUpBlock(player, te, world, pos))
{
player.closeScreen();
if (ItemTile.storeTileData(te, world, pos, state.getActualState(world, pos), stack))
{

View File

@ -38,8 +38,6 @@ public class PickupHandler
IBlockState state = world.getBlockState(pos);
Block block = state.getBlock();
player.closeScreen();
NBTTagCompound tag = new NBTTagCompound();
if (tile != null)
tile.writeToNBT(tag);
@ -57,7 +55,6 @@ public class PickupHandler
{
return false;
}
CarryOn.LOGGER.info("Block is allowed");
}
else
{