fix allowPermanentBlockBreakExploits config

This commit is contained in:
Lulu13022002
2024-12-18 23:35:47 +01:00
parent c71ada60db
commit 5922e6334b
18 changed files with 31 additions and 50 deletions

View File

@@ -511,7 +511,7 @@
private boolean isPvpAllowed() {
- return this.server.isPvpAllowed();
+ return this.level().pvpMode; // CraftBukkit - this.server.isPvpAllowed() -> this.world.pvpMode
+ return this.level().pvpMode; // CraftBukkit - this.server.isPvpAllowed() -> this.world.pvpMode
}
- public TeleportTransition findRespawnPositionAndUseSpawnBlock(boolean useCharge, TeleportTransition.PostTeleportTransition postTeleportTransition) {
@@ -541,7 +541,7 @@
} else {
- return new TeleportTransition(this.server.overworld(), this, postTeleportTransition);
- }
+ teleportTransition = new TeleportTransition(this.server.overworld(), this, postTeleportTransition); // CraftBukkit
+ teleportTransition = new TeleportTransition(this.server.overworld(), this, postTeleportTransition); // CraftBukkit
+ }
+ // CraftBukkit start
+ if (respawnReason == null) {
@@ -1123,7 +1123,7 @@
for (MobEffectInstance mobEffectInstance : that.getActiveEffects()) {
- this.addEffect(new MobEffectInstance(mobEffectInstance));
+ // this.addEffect(new MobEffectInstance(mobEffectInstance)); // CraftBukkit
+ // this.addEffect(new MobEffectInstance(mobEffectInstance)); // CraftBukkit
}
this.getInventory().replaceWith(that.getInventory());
@@ -1203,7 +1203,7 @@
+ // Paper end
if (this.acceptsChatMessages()) {
- message.sendToPlayer(this, filtered, boundType);
+ message.sendToPlayer(this, filtered, boundType, unsigned); // Paper
+ message.sendToPlayer(this, filtered, boundType, unsigned); // Paper
}
}