mirror of
https://github.com/PolyhedralDev/Terra.git
synced 2026-10-27 22:40:23 +00:00
synchronize BukkitWorldHandle#createBlockState
This commit is contained in:
1 parent
9ae259f1ed
commit
5da0a861b6
1 file changed
+2
-2
+2
-2
@@ -39,8 +39,8 @@ public class BukkitWorldHandle implements WorldHandle {
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NotNull BlockState createBlockState(@NotNull String data) {
|
||||
org.bukkit.block.data.BlockData bukkitData = Bukkit.createBlockData(data);
|
||||
public synchronized @NotNull BlockState createBlockState(@NotNull String data) {
|
||||
org.bukkit.block.data.BlockData bukkitData = Bukkit.createBlockData(data); // somehow bukkit managed to make this not thread safe! :)
|
||||
return BukkitBlockState.newInstance(bukkitData);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user