diff options
author | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-07-25 22:33:25 +0100 |
---|---|---|
committer | Thinkofdeath <thinkofdeath@spigotmc.org> | 2015-07-25 22:33:25 +0100 |
commit | d27e6d0c540cb90d218d6dc63b8cf51c85eda8f0 (patch) | |
tree | 7aa47dde4a93e901ed3b200b756062083cf72237 /nms-patches | |
parent | 219686bdabba7e72c8d9b8d9d8d4bcc80337542d (diff) | |
download | craftbukkit-d27e6d0c540cb90d218d6dc63b8cf51c85eda8f0.tar craftbukkit-d27e6d0c540cb90d218d6dc63b8cf51c85eda8f0.tar.gz craftbukkit-d27e6d0c540cb90d218d6dc63b8cf51c85eda8f0.tar.lz craftbukkit-d27e6d0c540cb90d218d6dc63b8cf51c85eda8f0.tar.xz craftbukkit-d27e6d0c540cb90d218d6dc63b8cf51c85eda8f0.zip |
Add a sane limit for name length
Diffstat (limited to 'nms-patches')
-rw-r--r-- | nms-patches/Entity.patch | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/nms-patches/Entity.patch b/nms-patches/Entity.patch index b5720bb4..ee120271 100644 --- a/nms-patches/Entity.patch +++ b/nms-patches/Entity.patch @@ -574,7 +574,19 @@ } this.dead = true; -@@ -1721,7 +2081,26 @@ +@@ -1670,6 +2030,11 @@ + } + + public void setCustomName(String s) { ++ // CraftBukkit start - Add a sane limit for name length ++ if (s.length() > 256) { ++ s = s.substring(0, 256); ++ } ++ // CraftBukkit end + this.datawatcher.watch(2, s); + } + +@@ -1721,7 +2086,26 @@ } public void a(AxisAlignedBB axisalignedbb) { |