9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-30 20:39:10 +00:00
This commit is contained in:
XiaoMoMi
2025-04-26 04:14:16 +08:00
parent 3769ddee55
commit a2f9e37768
2 changed files with 3 additions and 3 deletions

View File

@@ -368,7 +368,7 @@ public class BukkitInjector {
}
}
public static void injectLevelChunkSection(Object targetSection, CESection ceSection, CEWorld ceWorld, SectionPos pos) {
public synchronized static void injectLevelChunkSection(Object targetSection, CESection ceSection, CEWorld ceWorld, SectionPos pos) {
try {
Object container = FastNMS.INSTANCE.field$LevelChunkSection$states(targetSection);
if (!(container instanceof InjectedPalettedContainerHolder)) {
@@ -384,7 +384,7 @@ public class BukkitInjector {
}
}
public static void uninjectLevelChunkSection(Object section) {
public synchronized static void uninjectLevelChunkSection(Object section) {
try {
Object states = FastNMS.INSTANCE.field$LevelChunkSection$states(section);
if (states instanceof InjectedPalettedContainerHolder holder) {