mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 23:28:35 +01:00
Made fluid collector not output and input wrong stuff
This commit is contained in:
parent
c1eb3fb644
commit
c297df9cc4
2 changed files with 4 additions and 7 deletions
|
@ -19,7 +19,7 @@ group = "de.ellpeck.actuallyadditions"
|
||||||
archivesBaseName = "ActuallyAdditions"
|
archivesBaseName = "ActuallyAdditions"
|
||||||
|
|
||||||
minecraft {
|
minecraft {
|
||||||
version = "1.9.4-12.17.0.1957"
|
version = "1.10-12.18.0.1983-1.10.0"
|
||||||
runDir = "idea"
|
runDir = "idea"
|
||||||
|
|
||||||
mappings = "snapshot_20160519"
|
mappings = "snapshot_20160519"
|
||||||
|
|
|
@ -21,18 +21,15 @@ import net.minecraft.util.math.BlockPos;
|
||||||
|
|
||||||
public class DispenserHandlerFertilize extends BehaviorDefaultDispenseItem{
|
public class DispenserHandlerFertilize extends BehaviorDefaultDispenseItem{
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public ItemStack dispenseStack(IBlockSource source, ItemStack stack){
|
public ItemStack dispenseStack(IBlockSource source, ItemStack stack){
|
||||||
EnumFacing facing = BlockDispenser.getFacing(source.getBlockMetadata());
|
EnumFacing facing = source.func_189992_e().getValue(BlockDispenser.FACING);
|
||||||
int x = source.getBlockTileEntity().getPos().getX()+facing.getFrontOffsetX();
|
BlockPos pos = source.getBlockPos().offset(facing);
|
||||||
int y = source.getBlockTileEntity().getPos().getY()+facing.getFrontOffsetY();
|
|
||||||
int z = source.getBlockTileEntity().getPos().getZ()+facing.getFrontOffsetZ();
|
|
||||||
BlockPos pos = new BlockPos(x, y, z);
|
|
||||||
|
|
||||||
if(ItemDye.applyBonemeal(stack, source.getWorld(), pos)){
|
if(ItemDye.applyBonemeal(stack, source.getWorld(), pos)){
|
||||||
source.getWorld().playEvent(2005, pos, 0);
|
source.getWorld().playEvent(2005, pos, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
return stack;
|
return stack;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue