mirror of
https://github.com/Sollace/Unicopia.git
synced 2024-11-27 15:17:59 +01:00
Fixed not being able to collect water from soggy cloud stairs
This commit is contained in:
parent
73cab14bbb
commit
2318576539
1 changed files with 11 additions and 0 deletions
|
@ -12,10 +12,15 @@ import com.mojang.serialization.codecs.RecordCodecBuilder;
|
|||
import net.minecraft.block.Block;
|
||||
import net.minecraft.block.BlockState;
|
||||
import net.minecraft.block.StairsBlock;
|
||||
import net.minecraft.entity.player.PlayerEntity;
|
||||
import net.minecraft.item.ItemStack;
|
||||
import net.minecraft.registry.Registries;
|
||||
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.world.World;
|
||||
import net.minecraft.world.WorldView;
|
||||
|
||||
public class SoggyCloudStairsBlock extends CloudStairsBlock implements Soakable {
|
||||
|
@ -49,6 +54,12 @@ public class SoggyCloudStairsBlock extends CloudStairsBlock implements Soakable
|
|||
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
|
||||
@Override
|
||||
public BlockState getStateWithMoisture(BlockState state, int moisture) {
|
||||
|
|
Loading…
Reference in a new issue