Skip to content

Commit

Permalink
Lock PalettedContainer when setting blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
Moulberry committed Sep 25, 2023
1 parent 48e1062 commit 5001765
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,6 @@
import net.minecraft.world.level.levelgen.Heightmap;
import net.minecraft.world.level.lighting.LightEngine;
import org.bukkit.Bukkit;
import org.bukkit.NamespacedKey;
import org.bukkit.craftbukkit.v1_20_R1.CraftWorld;
import org.bukkit.craftbukkit.v1_20_R1.entity.CraftPlayer;
import org.bukkit.entity.Player;
import org.bukkit.plugin.messaging.PluginMessageListener;
import org.jetbrains.annotations.NotNull;
import xyz.jpenilla.reflectionremapper.ReflectionRemapper;

import java.lang.reflect.InvocationTargetException;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public void onPluginMessageReceived(@NotNull String channel, @NotNull Player buk
}
}

BlockState old = section.setBlockState(x, y, z, blockState, false);
BlockState old = section.setBlockState(x, y, z, blockState, true);
if (blockState != old) {
Block block = blockState.getBlock();
motionBlocking.update(x, by, z, blockState);
Expand Down

0 comments on commit 5001765

Please sign in to comment.