Skip to content

Commit

Permalink
Fixed the item renderer
Browse files Browse the repository at this point in the history
  • Loading branch information
N1nn1 committed Feb 12, 2024
1 parent 61b19a2 commit e137769
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public class PigmentShifterBlock extends BaseEntityBlock implements SimpleWaterl

public PigmentShifterBlock(BlockBehaviour.Properties properties) {
super(properties);
this.registerDefaultState(this.stateDefinition.any().setValue(WATERLOGGED, true));
this.registerDefaultState(this.stateDefinition.any().setValue(WATERLOGGED, false));
}

public InteractionResult use(BlockState blockState, Level level, BlockPos blockPos, Player player, InteractionHand interactionHand, BlockHitResult blockHitResult) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,7 @@ public class BlockEntityWithoutLevelRendererMixin {
@Final
private BlockEntityRenderDispatcher blockEntityRenderDispatcher;

@Unique
private final PigmentShifterBlockEntity pigmentShifter = new PigmentShifterBlockEntity(BlockPos.ZERO, SpawnBlocks.PIGMENT_SHIFTER.defaultBlockState().setValue(PigmentShifterBlock.WATERLOGGED, false));
@Unique
private final PigmentShifterBlockEntity pigmentShifter = new PigmentShifterBlockEntity(BlockPos.ZERO, SpawnBlocks.PIGMENT_SHIFTER.defaultBlockState());
private final ClamLauncherBlockEntity clamLauncher = new ClamLauncherBlockEntity(BlockPos.ZERO, SpawnBlocks.CLAM_LAUNCHER.defaultBlockState());


Expand All @@ -39,7 +37,7 @@ public class BlockEntityWithoutLevelRendererMixin {
if (itemStack.getItem() instanceof BlockItem blockItem && blockItem.getBlock() instanceof PigmentShifterBlock) {
this.blockEntityRenderDispatcher.renderItem(pigmentShifter, poseStack, multiBufferSource, i, j);
}
else if (itemStack.getItem() instanceof BlockItem blockItem && blockItem.getBlock() instanceof ClamLauncherBlock) {
if (itemStack.getItem() instanceof BlockItem blockItem && blockItem.getBlock() instanceof ClamLauncherBlock) {
this.blockEntityRenderDispatcher.renderItem(clamLauncher, poseStack, multiBufferSource, i, j);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ public class SpawnCreativeModeTab {
output.accept(COOKED_HERRING);

// octopus
output.accept(OCTOPUS_SPAWN_EGG);
//output.accept(OCTOPUS_SPAWN_EGG);
output.accept(CAPTURED_OCTOPUS);

// whale
Expand Down

0 comments on commit e137769

Please sign in to comment.