geforkt von Mirrors/Paper
Fix config migration error preventing server startup
There's at least two more, but those are less pressing
Dieser Commit ist enthalten in:
Ursprung
6c0ab6d3ef
Commit
c6f937f660
@ -10,7 +10,7 @@ packet-limiter:
|
||||
all:
|
||||
interval: 7.0
|
||||
max-packet-rate: 500.0
|
||||
PacketPlayInAutoRecipe:
|
||||
ServerboundPlaceRecipePacket:
|
||||
interval: 4.0
|
||||
max-packet-rate: 5.0
|
||||
action: DROP
|
||||
|
@ -1913,6 +1913,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ final String fullClassName = "net.minecraft.network.protocol." + subpackage + "." + obj;
|
||||
+ try {
|
||||
+ packetClass = Class.forName(fullClassName);
|
||||
+ break;
|
||||
+ } catch (final ClassNotFoundException ex) {
|
||||
+ final @Nullable String spigotClassName = MOJANG_TO_OBF.get(fullClassName);
|
||||
+ if (spigotClassName != null) {
|
||||
@ -1930,6 +1931,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+
|
||||
+ @Override
|
||||
+ protected Object serialize(final Class<? extends Packet<?>> item, final Predicate<Class<?>> typeSupported) {
|
||||
+ //TODO always serialize the mapped class name to not break on switching between mapped/unmapped servers
|
||||
+ return item.getSimpleName();
|
||||
+ }
|
||||
+}
|
||||
@ -2851,10 +2853,16 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ return new Object[]{"entities", "spawning", "duplicate-uuid", "mode"};
|
||||
+ });
|
||||
+
|
||||
+ builder.addAction(path("redstone-implementation"), (path, value) -> {
|
||||
+ if (value.require(String.class).equalsIgnoreCase("alternate-current")) {
|
||||
+ value.set("alternate_current");
|
||||
+ }
|
||||
+ return new Object[]{"misc", "redstone-implementation"};
|
||||
+ });
|
||||
+
|
||||
+ moveToMisc(builder, "light-queue-size");
|
||||
+ moveToMisc(builder, "update-pathfinding-on-block-update");
|
||||
+ moveToMisc(builder, "show-sign-click-command-failure-msgs-to-player");
|
||||
+ moveToMisc(builder, "redstone-implementation");
|
||||
+ moveToMisc(builder, "max-leash-distance");
|
||||
+
|
||||
+ return builder.build();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren