mirror of
https://github.com/GTNewHorizons/ForestryMC.git
synced 2026-11-21 12:32:23 +00:00
Update Forge and MCP
This commit is contained in:
1 parent
ea6fd2e3c0
commit
7bb91e9165
6 files changed
+11
-11
No files matched your search
@@ -46,8 +46,8 @@ public abstract class ContainerLiquidTanks<T extends TileEntity & ILiquidTankTil
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCraftGuiOpened(ICrafting crafting) {
|
||||
super.onCraftGuiOpened(crafting);
|
||||
public void addListener(ICrafting crafting) {
|
||||
super.addListener(crafting);
|
||||
tile.getTankManager().containerAdded(this, crafting);
|
||||
}
|
||||
|
||||
|
||||
@@ -51,8 +51,8 @@ public abstract class ContainerLiquidTanksSocketed<T extends TileEntity & ILiqui
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCraftGuiOpened(ICrafting crafting) {
|
||||
super.onCraftGuiOpened(crafting);
|
||||
public void addListener(ICrafting crafting) {
|
||||
super.addListener(crafting);
|
||||
tile.getTankManager().containerAdded(this, crafting);
|
||||
}
|
||||
|
||||
|
||||
@@ -50,8 +50,8 @@ public class ContainerNaturalistInventory extends ContainerTile<TileNaturalistCh
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onCraftGuiOpened(ICrafting listener) {
|
||||
super.onCraftGuiOpened(listener);
|
||||
public void addListener(ICrafting listener) {
|
||||
super.addListener(listener);
|
||||
|
||||
tile.increaseNumPlayersUsing();
|
||||
}
|
||||
|
||||
@@ -29,7 +29,7 @@ public class ItemFertilizer extends ItemForestry {
|
||||
|
||||
if (ItemDye.applyBonemeal(stack, worldIn, pos, playerIn)) {
|
||||
if (!worldIn.isRemote) {
|
||||
worldIn.playAuxSFX(2005, pos, 0);
|
||||
worldIn.playEvent(2005, pos, 0);
|
||||
}
|
||||
|
||||
return EnumActionResult.SUCCESS;
|
||||
|
||||
@@ -123,7 +123,7 @@ public class BlockGreenhouseDoor extends BlockGreenhouse implements IStateMapper
|
||||
state = iblockstate.cycleProperty(OPEN);
|
||||
worldIn.setBlockState(blockpos, state, 2);
|
||||
worldIn.markBlockRangeForRenderUpdate(blockpos, pos);
|
||||
worldIn.playAuxSFXAtEntity(playerIn, state.getValue(OPEN) ? 1003 : 1006, pos, 0);
|
||||
worldIn.playEvent(playerIn, state.getValue(OPEN) ? 1003 : 1006, pos, 0);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
@@ -172,7 +172,7 @@ public class BlockGreenhouseDoor extends BlockGreenhouse implements IStateMapper
|
||||
if (flag != state.getValue(OPEN)) {
|
||||
worldIn.setBlockState(pos, state.withProperty(OPEN, flag), 2);
|
||||
worldIn.markBlockRangeForRenderUpdate(pos, pos);
|
||||
worldIn.playAuxSFXAtEntity((EntityPlayer) null, flag ? 1003 : 1006, pos, 0);
|
||||
worldIn.playEvent((EntityPlayer) null, flag ? 1003 : 1006, pos, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user