mirror of
https://github.com/GTNewHorizons/Botania.git
synced 2026-11-25 22:44:44 +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
@@ -23,6 +23,7 @@ import net.minecraft.util.Hand;
|
||||
import net.minecraft.util.Mirror;
|
||||
import net.minecraft.util.Rotation;
|
||||
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;
|
||||
@@ -51,7 +52,7 @@ public class BlockAvatar 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_AABB;
|
||||
else return Z_AABB;
|
||||
|
||||
Reference in new issue
Block a user