render fix
This commit is contained in:
@@ -12,7 +12,7 @@ public class GlowGlassBlock extends Block {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean skipRendering(BlockState state, BlockState adjacentBlockState, Direction side) {
|
public boolean skipRendering(BlockState state, BlockState adjacentBlockState, Direction side) {
|
||||||
return adjacentBlockState.getBlock() instanceof GlowGlassBlock || super.skipRendering(state, adjacentBlockState, side);
|
return adjacentBlockState.getBlock() == this || super.skipRendering(state, adjacentBlockState, side);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ public class GrateBlock extends Block {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean skipRendering(BlockState state, BlockState adjacentBlockState, Direction side) {
|
public boolean skipRendering(BlockState state, BlockState adjacentBlockState, Direction side) {
|
||||||
return adjacentBlockState.getBlock() instanceof GrateBlock || super.skipRendering(state, adjacentBlockState, side);
|
return adjacentBlockState.getBlock() == this || super.skipRendering(state, adjacentBlockState, side);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,17 +1,10 @@
|
|||||||
package ovh.glitchlabs.ornamentum.blocks;
|
package ovh.glitchlabs.ornamentum.blocks;
|
||||||
|
|
||||||
import net.minecraft.core.BlockPos;
|
|
||||||
import net.minecraft.core.Direction;
|
|
||||||
import net.minecraft.world.item.BlockItem;
|
import net.minecraft.world.item.BlockItem;
|
||||||
import net.minecraft.world.item.Item;
|
import net.minecraft.world.item.Item;
|
||||||
import net.minecraft.world.level.BlockGetter;
|
|
||||||
import net.minecraft.world.level.block.Block;
|
import net.minecraft.world.level.block.Block;
|
||||||
import net.minecraft.world.level.block.Blocks;
|
import net.minecraft.world.level.block.Blocks;
|
||||||
import net.minecraft.world.level.block.state.BlockBehaviour;
|
import net.minecraft.world.level.block.state.BlockBehaviour;
|
||||||
import net.minecraft.world.level.block.state.BlockState;
|
|
||||||
import net.minecraft.world.phys.shapes.CollisionContext;
|
|
||||||
import net.minecraft.world.phys.shapes.Shapes;
|
|
||||||
import net.minecraft.world.phys.shapes.VoxelShape;
|
|
||||||
import net.neoforged.bus.api.IEventBus;
|
import net.neoforged.bus.api.IEventBus;
|
||||||
import net.neoforged.neoforge.registries.DeferredBlock;
|
import net.neoforged.neoforge.registries.DeferredBlock;
|
||||||
import net.neoforged.neoforge.registries.DeferredRegister;
|
import net.neoforged.neoforge.registries.DeferredRegister;
|
||||||
|
|||||||
Reference in New Issue
Block a user