mirror of
https://github.com/PaperMC/Paper.git
synced 2025-07-26 09:42:06 -07:00
fix allowPermanentBlockBreakExploits config
This commit is contained in:
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user