From c297df9cc4ab0b9107c7065638d62a0182f86898 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 23 Jun 2016 19:27:42 +0200 Subject: [PATCH] Made fluid collector not output and input wrong stuff --- build.gradle | 2 +- .../mod/misc/DispenserHandlerFertilize.java | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/build.gradle b/build.gradle index d96ce9df7..b864efff6 100644 --- a/build.gradle +++ b/build.gradle @@ -19,7 +19,7 @@ group = "de.ellpeck.actuallyadditions" archivesBaseName = "ActuallyAdditions" minecraft { - version = "1.9.4-12.17.0.1957" + version = "1.10-12.18.0.1983-1.10.0" runDir = "idea" mappings = "snapshot_20160519" diff --git a/src/main/java/de/ellpeck/actuallyadditions/mod/misc/DispenserHandlerFertilize.java b/src/main/java/de/ellpeck/actuallyadditions/mod/misc/DispenserHandlerFertilize.java index 80e18b975..9ea76f1a1 100644 --- a/src/main/java/de/ellpeck/actuallyadditions/mod/misc/DispenserHandlerFertilize.java +++ b/src/main/java/de/ellpeck/actuallyadditions/mod/misc/DispenserHandlerFertilize.java @@ -21,18 +21,15 @@ import net.minecraft.util.math.BlockPos; public class DispenserHandlerFertilize extends BehaviorDefaultDispenseItem{ - @Override public ItemStack dispenseStack(IBlockSource source, ItemStack stack){ - EnumFacing facing = BlockDispenser.getFacing(source.getBlockMetadata()); - int x = source.getBlockTileEntity().getPos().getX()+facing.getFrontOffsetX(); - int y = source.getBlockTileEntity().getPos().getY()+facing.getFrontOffsetY(); - int z = source.getBlockTileEntity().getPos().getZ()+facing.getFrontOffsetZ(); - BlockPos pos = new BlockPos(x, y, z); + EnumFacing facing = source.func_189992_e().getValue(BlockDispenser.FACING); + BlockPos pos = source.getBlockPos().offset(facing); if(ItemDye.applyBonemeal(stack, source.getWorld(), pos)){ source.getWorld().playEvent(2005, pos, 0); } + return stack; }