From a9ed3346439d592fe0d9bfbfd2ca7d986601251c Mon Sep 17 00:00:00 2001 From: md_5 Date: Fri, 26 Apr 2019 09:11:47 +1000 Subject: [PATCH] SPIGOT-4758: --server-port argument does not work --- nms-patches/PropertyManager.patch | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nms-patches/PropertyManager.patch b/nms-patches/PropertyManager.patch index 475f28b41b..f7c9a5b26c 100644 --- a/nms-patches/PropertyManager.patch +++ b/nms-patches/PropertyManager.patch @@ -20,9 +20,9 @@ + this.options = options; } -+ private T getOverride(String name, T value) { ++ private String getOverride(String name, String value) { + if ((this.options != null) && (this.options.has(name))) { -+ return (T) this.options.valueOf(name); ++ return String.valueOf(this.options.valueOf(name)); + } + + return value;