This commit is contained in:
zly2006 committed 2024-07-14 19:12:32 +08:00
1 parent 059d4a9bde
commit c7ffec6782
3 files changed
+11 -1

No files matched your search

+5
View File
@@ -71,6 +71,11 @@ Optimized the dragon respawn logic, for endstone farms. Ported from Carpet AMS A
Elytra in crafting recipes won't be consumed. This allows players to craft extra elytras. Elytra in crafting recipes won't be consumed. This allows players to craft extra elytras.
This will **NOT** add a recipe for elytra, to enable the default recipe by StarLight Server, execute:
```mcfunction
datapack enable elytra-craftable
```
### spectatorCannotUseLeash ### spectatorCannotUseLeash
When player becomes spectator, the leash will be detached. When player becomes spectator, the leash will be detached.
+6
View File
@@ -71,6 +71,12 @@ SLS 添加提供了一个机器人系统,具有更好的权限控制和更多
在制作配方中,鞘翅不会被消耗。这允许玩家制作额外的鞘翅。 在制作配方中,鞘翅不会被消耗。这允许玩家制作额外的鞘翅。
这不会为鞘翅添加配方,要启用 StarLight Server 的默认配方,请执行:
```mcfunction
datapack enable elytra-craftable
```
### spectatorCannotUseLeash ### spectatorCannotUseLeash
当玩家成为旁观者时,拴绳将断开。 当玩家成为旁观者时,拴绳将断开。
@@ -10,7 +10,6 @@ import org.spongepowered.asm.mixin.injection.Redirect;
@Mixin(SleepManager.class) @Mixin(SleepManager.class)
public class MixinSleepManager { public class MixinSleepManager {
@Redirect(method = "update", at = @At(value = "INVOKE", target = "Lnet/minecraft/server/network/ServerPlayerEntity;isSpectator()Z")) @Redirect(method = "update", at = @At(value = "INVOKE", target = "Lnet/minecraft/server/network/ServerPlayerEntity;isSpectator()Z"))
private boolean isNormalPlayer(ServerPlayerEntity serverPlayerEntity) { private boolean isNormalPlayer(ServerPlayerEntity serverPlayerEntity) {
if (SLSCarpetSettings.fakePlayersNotOccupiedSleepQuota) { if (SLSCarpetSettings.fakePlayersNotOccupiedSleepQuota) {