mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-27 15:33:08 +00:00
Fix some block methods
This commit is contained in:
1 parent
c7cc76e1f3
commit
ee08a279a7
33 files changed
+74
-45
No files matched your search
@@ -26,6 +26,7 @@ import net.minecraft.util.Direction;
|
||||
import net.minecraft.util.Hand;
|
||||
import net.minecraft.util.Hand;
|
||||
import net.minecraft.util.math.BlockPos;
|
||||
import net.minecraft.util.math.shapes.ISelectionContext;
|
||||
import net.minecraft.util.math.shapes.VoxelShape;
|
||||
import net.minecraft.world.IBlockReader;
|
||||
import net.minecraft.world.World;
|
||||
@@ -104,7 +105,7 @@ public class BlockIncensePlate extends BlockMod implements ILexiconable {
|
||||
|
||||
@Nonnull
|
||||
@Override
|
||||
public VoxelShape getShape(BlockState state, IBlockReader world, BlockPos pos) {
|
||||
public VoxelShape getShape(BlockState state, IBlockReader world, BlockPos pos, ISelectionContext ctx) {
|
||||
if(state.get(BotaniaStateProps.CARDINALS).getAxis() == Direction.Axis.X) {
|
||||
return X_SHAPE;
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user