Skip to content

Commit

Permalink
Fixed AmethystBud Block FACING_DIRECTION property (#1400)
Browse files Browse the repository at this point in the history
* Made BlockWood use the same WoodType Block state as the other blocks
(OLD_LOG_TYPE was deprecated)

* Fixed BlockRedstoneRepeater Direction

* Fixed block_mappings for log axis

* Removed doubled log2 section

* Updated Release Version to 1.20.30-r2

* release +u

* Fixed UPDATE blocks causing a lot of issues in World generation

* Fixed Facing Direction property error on BlockAmethystBud

* Realized that BLOCK_FACE is required instead of FACING_DIRECTION
  • Loading branch information
Verox001 committed Oct 21, 2023
1 parent a37e4f4 commit 7e56c03
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/java/cn/nukkit/block/BlockAmethystBud.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,15 @@
import javax.annotation.Nullable;
import java.util.Arrays;

import static cn.nukkit.blockproperty.CommonBlockProperties.BLOCK_FACE;
import static cn.nukkit.blockproperty.CommonBlockProperties.FACING_DIRECTION;

@Since("1.6.0.0-PNX")
@PowerNukkitOnly
public abstract class BlockAmethystBud extends BlockTransparentMeta implements Faceable {
@PowerNukkitXOnly
@Since("1.6.0.0-PNX")
public static final BlockProperties PROPERTIES = new BlockProperties(CommonBlockProperties.BLOCK_FACE);
public static final BlockProperties PROPERTIES = new BlockProperties(BLOCK_FACE);

@Override
public String getName() {
Expand Down Expand Up @@ -86,14 +87,14 @@ public BlockProperties getProperties() {

@Override
public BlockFace getBlockFace() {
return getPropertyValue(FACING_DIRECTION);
return getPropertyValue(BLOCK_FACE);
}

@PowerNukkitXOnly
@Since("1.6.0.0-PNX")
@Override
public void setBlockFace(BlockFace face) {
setPropertyValue(FACING_DIRECTION, face);
setPropertyValue(BLOCK_FACE, face);
}

@Override
Expand Down

0 comments on commit 7e56c03

Please sign in to comment.