mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 07:17:58 +01:00
Fixed not being able to collect water from soggy cloud stairs
This commit is contained in:
parent
add128cbee
commit
c89f7209e9
2 changed files with 12 additions and 1 deletions
|
@ -8,10 +8,15 @@ import com.minelittlepony.unicopia.block.state.StateUtil;
|
||||||
|
|
||||||
import net.minecraft.block.Block;
|
import net.minecraft.block.Block;
|
||||||
import net.minecraft.block.BlockState;
|
import net.minecraft.block.BlockState;
|
||||||
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
import net.minecraft.item.ItemStack;
|
import net.minecraft.item.ItemStack;
|
||||||
import net.minecraft.state.StateManager;
|
import net.minecraft.state.StateManager;
|
||||||
|
import net.minecraft.util.ActionResult;
|
||||||
|
import net.minecraft.util.Hand;
|
||||||
|
import net.minecraft.util.hit.BlockHitResult;
|
||||||
import net.minecraft.util.math.BlockPos;
|
import net.minecraft.util.math.BlockPos;
|
||||||
import net.minecraft.world.BlockView;
|
import net.minecraft.world.BlockView;
|
||||||
|
import net.minecraft.world.World;
|
||||||
|
|
||||||
public class SoggyCloudStairsBlock extends CloudStairsBlock implements Soakable {
|
public class SoggyCloudStairsBlock extends CloudStairsBlock implements Soakable {
|
||||||
|
|
||||||
|
@ -34,6 +39,12 @@ public class SoggyCloudStairsBlock extends CloudStairsBlock implements Soakable
|
||||||
return dryBlock.get().getPickStack(world, pos, state);
|
return dryBlock.get().getPickStack(world, pos, state);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Deprecated
|
||||||
|
@Override
|
||||||
|
public ActionResult onUse(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) {
|
||||||
|
return Soakable.tryCollectMoisture(state, world, pos, player, hand, hit);
|
||||||
|
}
|
||||||
|
|
||||||
@Nullable
|
@Nullable
|
||||||
@Override
|
@Override
|
||||||
public BlockState getStateWithMoisture(BlockState state, int moisture) {
|
public BlockState getStateWithMoisture(BlockState state, int moisture) {
|
||||||
|
|
|
@ -5,7 +5,7 @@ import com.minelittlepony.unicopia.block.ItemJarBlock.JarContents;
|
||||||
import com.minelittlepony.unicopia.block.ItemJarBlock.TileData;
|
import com.minelittlepony.unicopia.block.ItemJarBlock.TileData;
|
||||||
import com.minelittlepony.unicopia.util.FluidHelper;
|
import com.minelittlepony.unicopia.util.FluidHelper;
|
||||||
|
|
||||||
import net.fabricmc.fabric.api.tag.convention.v2.ConventionalItemTags;
|
import net.fabricmc.fabric.api.tag.convention.v1.ConventionalItemTags;
|
||||||
import net.fabricmc.fabric.api.transfer.v1.fluid.FluidConstants;
|
import net.fabricmc.fabric.api.transfer.v1.fluid.FluidConstants;
|
||||||
import net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant;
|
import net.fabricmc.fabric.api.transfer.v1.fluid.FluidVariant;
|
||||||
import net.minecraft.entity.player.PlayerEntity;
|
import net.minecraft.entity.player.PlayerEntity;
|
||||||
|
|
Loading…
Reference in a new issue