Skip to content

Commit

Permalink
removed unneeded "has_content" state in Potion Workshop
Browse files Browse the repository at this point in the history
  • Loading branch information
DaFuqs committed Oct 30, 2023
1 parent df71cfe commit 3fb3561
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import net.minecraft.item.*;
import net.minecraft.screen.*;
import net.minecraft.state.*;
import net.minecraft.state.property.*;
import net.minecraft.util.*;
import net.minecraft.util.hit.*;
import net.minecraft.util.math.*;
Expand All @@ -21,18 +20,15 @@ public class PotionWorkshopBlock extends HorizontalFacingBlock implements BlockE

public static final Identifier UNLOCK_IDENTIFIER = SpectrumCommon.locate("unlocks/blocks/potion_workshop");

public static final BooleanProperty HAS_CONTENT = BooleanProperty.of("has_content");
public static final DirectionProperty FACING = Properties.HORIZONTAL_FACING;
protected static final VoxelShape SHAPE = Block.createCuboidShape(1.0D, 0.0D, 1.0D, 15.0D, 14.0D, 15.0D);

public PotionWorkshopBlock(Settings settings) {
super(settings);
setDefaultState(getStateManager().getDefaultState().with(HAS_CONTENT, false));
}

@Override
protected void appendProperties(StateManager.Builder<Block, BlockState> builder) {
builder.add(HAS_CONTENT, FACING);
builder.add(FACING);
}

@Override
Expand Down

0 comments on commit 3fb3561

Please sign in to comment.