From 7b9075c0bfabaf8b9a36efb97cbcb334c0b203ef Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Fri, 19 Jul 2019 21:44:13 +1000 Subject: [PATCH] Update Fabric to 1.14.4 and fix physics updates --- worldedit-fabric/build.gradle.kts | 6 +++--- .../java/com/sk89q/worldedit/fabric/FabricWorld.java | 9 ++++++++- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/worldedit-fabric/build.gradle.kts b/worldedit-fabric/build.gradle.kts index 7b11f0aca..f8cb056eb 100644 --- a/worldedit-fabric/build.gradle.kts +++ b/worldedit-fabric/build.gradle.kts @@ -26,9 +26,9 @@ applyShadowConfiguration() apply(plugin = "fabric-loom") -val minecraftVersion = "1.14.3" -val fabricVersion = "0.3.0+build.187" -val yarnMappings = "1.14.3+build.1" +val minecraftVersion = "1.14.4" +val fabricVersion = "0.3.0+build.200" +val yarnMappings = "1.14.4+build.1" val loaderVersion = "0.4.8+build.155" configurations.all { diff --git a/worldedit-fabric/src/main/java/com/sk89q/worldedit/fabric/FabricWorld.java b/worldedit-fabric/src/main/java/com/sk89q/worldedit/fabric/FabricWorld.java index 8125fb0cb..afc6cc99e 100644 --- a/worldedit-fabric/src/main/java/com/sk89q/worldedit/fabric/FabricWorld.java +++ b/worldedit-fabric/src/main/java/com/sk89q/worldedit/fabric/FabricWorld.java @@ -211,7 +211,12 @@ public class FabricWorld extends AbstractWorld { if (successful && notifyAndLight) { world.getChunkManager().getLightingProvider().enqueueLightUpdate(pos); + world.scheduleBlockRender(pos, old, newState); world.updateListeners(pos, old, newState, UPDATE | NOTIFY); + world.updateNeighbors(pos, newState.getBlock()); + if (old.hasComparatorOutput()) { + world.updateHorizontalAdjacent(pos, newState.getBlock()); + } } return successful; @@ -220,7 +225,9 @@ public class FabricWorld extends AbstractWorld { @Override public boolean notifyAndLightBlock(BlockVector3 position, BlockState previousType) throws WorldEditException { BlockPos pos = new BlockPos(position.getX(), position.getY(), position.getZ()); - getWorld().updateListeners(pos, FabricAdapter.adapt(previousType), getWorld().getBlockState(pos), 1 | 2); + net.minecraft.block.BlockState state = getWorld().getBlockState(pos); + getWorld().updateListeners(pos, FabricAdapter.adapt(previousType), state, 1 | 2); + getWorld().updateNeighbors(pos, state.getBlock()); return true; }