Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jake Potrebic <jake.m.potrebic@gmail.com>
Date: Sun, 24 Apr 2022 11:07:21 -0700
Subject: [PATCH] Fix setting invalid direction state prop in UpgradeData


diff --git a/src/main/java/net/minecraft/world/level/chunk/UpgradeData.java b/src/main/java/net/minecraft/world/level/chunk/UpgradeData.java
index 8c68f95d78909e6fe7dd4b6025af5d958b122f28..20b11d62976c79829d8cbb9a988a543b15260e21 100644
--- a/src/main/java/net/minecraft/world/level/chunk/UpgradeData.java
+++ b/src/main/java/net/minecraft/world/level/chunk/UpgradeData.java
@@ -357,7 +357,7 @@ public class UpgradeData {
STEM_BLOCK(Blocks.MELON_STEM, Blocks.PUMPKIN_STEM) {
@Override
public BlockState updateShape(BlockState oldState, Direction direction, BlockState otherState, LevelAccessor world, BlockPos currentPos, BlockPos otherPos) {
- if (oldState.getValue(StemBlock.AGE) == 7) {
+ if (direction.getAxis().isHorizontal() && oldState.getValue(StemBlock.AGE) == 7) { // Paper
StemGrownBlock stemGrownBlock = ((StemBlock)oldState.getBlock()).getFruit();
if (otherState.is(stemGrownBlock)) {
return stemGrownBlock.getAttachedStem().defaultBlockState().setValue(HorizontalDirectionalBlock.FACING, direction);