fix more diff
This commit is contained in:
@@ -740,7 +740,7 @@
|
||||
- LOGGER.warn("{} moved too quickly! {},{},{}", this.player.getName().getString(), d3, d4, d5);
|
||||
- this.teleport(this.player.getX(), this.player.getY(), this.player.getZ(), this.player.getYRot(), this.player.getXRot());
|
||||
- return;
|
||||
+ if (d7 - d6 > Math.max(f2, Mth.square((org.spigotmc.SpigotConfig.movedTooQuicklyMultiplier * (float) i * speed)))) {
|
||||
+ if (d7 - d6 > Math.max(f2, Mth.square(org.spigotmc.SpigotConfig.movedTooQuicklyMultiplier * (float) i * speed))) {
|
||||
+ // CraftBukkit end
|
||||
+ // Paper start - Add fail move event
|
||||
+ io.papermc.paper.event.player.PlayerFailMoveEvent event = fireFailMove(io.papermc.paper.event.player.PlayerFailMoveEvent.FailReason.MOVED_TOO_QUICKLY,
|
||||
|
||||
@@ -293,7 +293,6 @@
|
||||
|
||||
@Override
|
||||
public void handleCustomQueryPacket(ServerboundCustomQueryAnswerPacket packet) {
|
||||
- this.disconnect(ServerCommonPacketListenerImpl.DISCONNECT_UNEXPECTED_QUERY);
|
||||
+ // Paper start - Add Velocity IP Forwarding Support
|
||||
+ if (io.papermc.paper.configuration.GlobalConfiguration.get().proxies.velocity.enabled && packet.transactionId() == this.velocityLoginMessageId) {
|
||||
+ ServerboundCustomQueryAnswerPacket.QueryAnswerPayload payload = (ServerboundCustomQueryAnswerPacket.QueryAnswerPayload)packet.payload();
|
||||
@@ -338,7 +337,7 @@
|
||||
+ return;
|
||||
+ }
|
||||
+ // Paper end - Add Velocity IP Forwarding Support
|
||||
+ // this.disconnect(ServerCommonPacketListenerImpl.DISCONNECT_UNEXPECTED_QUERY);
|
||||
this.disconnect(ServerCommonPacketListenerImpl.DISCONNECT_UNEXPECTED_QUERY);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -70,8 +70,8 @@
|
||||
}
|
||||
+ // Spigot start
|
||||
+ } catch (com.google.gson.JsonParseException | NullPointerException ex) {
|
||||
+ LOGGER.warn("Unable to read file {}, backing it up to {0}.backup and creating new copy.", this.file, ex);
|
||||
+ File backup = new File(this.file + ".backup");
|
||||
+ LOGGER.warn("Unable to read file {}, backing it up to {} and creating new copy.", this.file, backup, ex);
|
||||
+ this.file.renameTo(backup);
|
||||
+ this.file.delete();
|
||||
}
|
||||
|
||||
@@ -45,7 +45,7 @@ public class CraftPig extends CraftAnimals implements Pig {
|
||||
}
|
||||
|
||||
int max = this.getHandle().steering.boostTimeTotal();
|
||||
Preconditions.checkArgument(ticks >= 0 && ticks <= max, "boost ticks must not exceed 0 or %d (inclusive)", max);
|
||||
Preconditions.checkArgument(ticks >= 0 && ticks <= max, "boost ticks must not exceed 0 or %s (inclusive)", max);
|
||||
|
||||
this.getHandle().steering.boostTime = ticks;
|
||||
}
|
||||
|
||||
@@ -55,7 +55,7 @@ public class CraftStrider extends CraftAnimals implements Strider {
|
||||
}
|
||||
|
||||
int max = this.getHandle().steering.boostTimeTotal();
|
||||
Preconditions.checkArgument(ticks >= 0 && ticks <= max, "boost ticks must not exceed 0 or %d (inclusive)", max);
|
||||
Preconditions.checkArgument(ticks >= 0 && ticks <= max, "boost ticks must not exceed 0 or %s (inclusive)", max);
|
||||
|
||||
this.getHandle().steering.boostTime = ticks;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user