Couple config fixes (#7975)
This commit is contained in:
parent
98b65200d8
commit
c3f403dd76
2 changed files with 4 additions and 2 deletions
|
@ -631,7 +631,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ public Map<Class<? extends Packet<?>>, PacketLimit> overrides = Map.of(ServerboundPlaceRecipePacket.class, new PacketLimit(4.0, 5.0, PacketLimit.ViolateAction.DROP));
|
||||
+
|
||||
+ @ConfigSerializable
|
||||
+ public record PacketLimit(@Constraint(Constraints.Positive.class) @Required double interval, @Constraint(Constraints.Positive.class) @Required double maxPacketRate, ViolateAction action) {
|
||||
+ public record PacketLimit(@Required double interval, @Required double maxPacketRate, ViolateAction action) {
|
||||
+ public PacketLimit(final double interval, final double maxPacketRate, final @Nullable ViolateAction action) {
|
||||
+ this.interval = interval;
|
||||
+ this.maxPacketRate = maxPacketRate;
|
||||
|
@ -1354,6 +1354,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
|||
+ path("use-hopper-check"),
|
||||
+ path("use-async-lighting"),
|
||||
+ path("tnt-explosion-volume"),
|
||||
+ path("entities", "spawning", "despawn-ranges", "soft"),
|
||||
+ path("entities", "spawning", "despawn-ranges", "hard")
|
||||
+ };
|
||||
+
|
||||
+ NodePath[] REMOVED_GLOBAL_PATHS = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue