mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-04 20:06:06 +00:00
Update Fabric to 1.14.4 and fix physics updates
This commit is contained in:
parent
8975347703
commit
7b9075c0bf
@ -26,9 +26,9 @@ applyShadowConfiguration()
|
|||||||
|
|
||||||
apply(plugin = "fabric-loom")
|
apply(plugin = "fabric-loom")
|
||||||
|
|
||||||
val minecraftVersion = "1.14.3"
|
val minecraftVersion = "1.14.4"
|
||||||
val fabricVersion = "0.3.0+build.187"
|
val fabricVersion = "0.3.0+build.200"
|
||||||
val yarnMappings = "1.14.3+build.1"
|
val yarnMappings = "1.14.4+build.1"
|
||||||
val loaderVersion = "0.4.8+build.155"
|
val loaderVersion = "0.4.8+build.155"
|
||||||
|
|
||||||
configurations.all {
|
configurations.all {
|
||||||
|
@ -211,7 +211,12 @@ public class FabricWorld extends AbstractWorld {
|
|||||||
|
|
||||||
if (successful && notifyAndLight) {
|
if (successful && notifyAndLight) {
|
||||||
world.getChunkManager().getLightingProvider().enqueueLightUpdate(pos);
|
world.getChunkManager().getLightingProvider().enqueueLightUpdate(pos);
|
||||||
|
world.scheduleBlockRender(pos, old, newState);
|
||||||
world.updateListeners(pos, old, newState, UPDATE | NOTIFY);
|
world.updateListeners(pos, old, newState, UPDATE | NOTIFY);
|
||||||
|
world.updateNeighbors(pos, newState.getBlock());
|
||||||
|
if (old.hasComparatorOutput()) {
|
||||||
|
world.updateHorizontalAdjacent(pos, newState.getBlock());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return successful;
|
return successful;
|
||||||
@ -220,7 +225,9 @@ public class FabricWorld extends AbstractWorld {
|
|||||||
@Override
|
@Override
|
||||||
public boolean notifyAndLightBlock(BlockVector3 position, BlockState previousType) throws WorldEditException {
|
public boolean notifyAndLightBlock(BlockVector3 position, BlockState previousType) throws WorldEditException {
|
||||||
BlockPos pos = new BlockPos(position.getX(), position.getY(), position.getZ());
|
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;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user