Address some issues with book limits (#1798)

The multibyte calculation has been fixed, now we actually work out which
characters take more than a byte.

Diminishing returns has been modified, previously the multiplier would zero
itself out due to floating point limitations
This commit is contained in:
Shane Freeder
2019-01-12 13:59:06 +00:00
parent f51229fdce
commit 0e7c9559ec
2 changed files with 26 additions and 13 deletions

View File

@@ -10,7 +10,7 @@ it impossible to properly cancel the event or modify the book meta
cancelled writing
diff --git a/src/main/java/net/minecraft/server/PlayerConnection.java b/src/main/java/net/minecraft/server/PlayerConnection.java
index 74c570615..9741d3b23 100644
index 8d06b23ea..a8a6e236e 100644
--- a/src/main/java/net/minecraft/server/PlayerConnection.java
+++ b/src/main/java/net/minecraft/server/PlayerConnection.java
@@ -0,0 +0,0 @@ public class PlayerConnection implements PacketListenerPlayIn, ITickable {