9
0
mirror of https://github.com/Xiao-MoMi/craft-engine.git synced 2025-12-19 15:09:15 +00:00

修复nms调用

This commit is contained in:
jhqwqmc
2025-11-22 11:55:54 +08:00
parent 400c442c43
commit e167111b19
4 changed files with 2 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ public abstract class AbstractCanSurviveBlockBehavior extends BukkitBlockBehavio
net.momirealms.craftengine.core.world.World world = new BukkitWorld(FastNMS.INSTANCE.method$Level$getCraftWorld(level));
WorldPosition position = new WorldPosition(world, Vec3d.atCenterOf(LocationUtils.fromBlockPos(blockPos)));
world.playBlockSound(position, customState.settings().sounds().breakSound());
FastNMS.INSTANCE.method$Level$destroyBlock(level, blockPos, true);
FastNMS.INSTANCE.method$LevelWriter$destroyBlock(level, blockPos, true);
}
});
}

View File

@@ -59,7 +59,6 @@ public class SelfHost implements ResourcePackHost {
public static class Factory implements ResourcePackHostFactory {
@SuppressWarnings("UnstableApiUsage")
@Override
public ResourcePackHost create(Map<String, Object> arguments) {
SelfHostHttpServer selfHostHttpServer = SelfHostHttpServer.instance();

View File

@@ -39,7 +39,6 @@ import java.util.concurrent.ScheduledExecutorService;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicLong;
@SuppressWarnings("UnstableApiUsage")
public class SelfHostHttpServer {
private static SelfHostHttpServer instance;
private final Cache<String, Boolean> oneTimePackUrls = Caffeine.newBuilder()

View File

@@ -48,7 +48,7 @@ byte_buddy_version=1.18.1
ahocorasick_version=0.6.3
snake_yaml_version=2.5
anti_grief_version=1.0.5
nms_helper_version=1.0.135
nms_helper_version=1.0.136
evalex_version=3.5.0
reactive_streams_version=1.0.4
amazon_awssdk_version=2.38.7