mirror of
https://github.com/Xiao-MoMi/craft-engine.git
synced 2025-12-30 04:19:27 +00:00
Merge remote-tracking branch 'refs/remotes/upstream/dev' into lamp
This commit is contained in:
@@ -917,7 +917,7 @@ public final class CoreReflections {
|
||||
);
|
||||
|
||||
public static final Method method$IdMapper$add = requireNonNull(
|
||||
ReflectionUtils.getMethod(clazz$IdMapper, void.class, Object.class)
|
||||
ReflectionUtils.getMethod(clazz$IdMapper, void.class, new String[] {"add", "b"}, Object.class)
|
||||
);
|
||||
|
||||
public static final Object instance$Block$BLOCK_STATE_REGISTRY;
|
||||
|
||||
@@ -7,14 +7,13 @@ import net.momirealms.craftengine.core.block.entity.render.BlockEntityRenderer;
|
||||
import net.momirealms.craftengine.core.block.entity.render.BlockEntityRendererConfig;
|
||||
import net.momirealms.craftengine.core.plugin.config.Config;
|
||||
import net.momirealms.craftengine.core.util.SectionPosUtils;
|
||||
import net.momirealms.craftengine.core.world.BlockPos;
|
||||
import net.momirealms.craftengine.core.world.CEWorld;
|
||||
import net.momirealms.craftengine.core.world.ChunkPos;
|
||||
import net.momirealms.craftengine.core.world.World;
|
||||
import net.momirealms.craftengine.core.world.*;
|
||||
import net.momirealms.craftengine.core.world.chunk.storage.StorageAdaptor;
|
||||
import net.momirealms.craftengine.core.world.chunk.storage.WorldDataStorage;
|
||||
|
||||
import java.lang.ref.WeakReference;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
|
||||
public class BukkitCEWorld extends CEWorld {
|
||||
|
||||
@@ -39,8 +38,9 @@ public class BukkitCEWorld extends CEWorld {
|
||||
);
|
||||
super.lightSections.clear();
|
||||
super.isUpdatingLights = false;
|
||||
super.lightSections.addAll(super.pendingLightSections);
|
||||
super.pendingLightSections.clear();
|
||||
List<SectionPos> pendingLightSections = super.pendingLightSections;
|
||||
super.pendingLightSections = new ArrayList<>(Math.max(pendingLightSections.size() / 2, 8));
|
||||
super.lightSections.addAll(pendingLightSections);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user