Paper/CraftBukkit-Patches/0026-Remove-o-Option.patch

24 lines
880 B
Diff
Raw Normal View History

2014-03-26 21:34:47 +01:00
From 0a1e4d812ab47f41a9b54eb7bf34462c5427d1d1 Mon Sep 17 00:00:00 2001
From: md_5 <md_5@live.com.au>
Date: Sun, 19 May 2013 18:29:48 +1000
Subject: [PATCH] Remove -o Option
Serves no purpose other than to confuse users.
diff --git a/src/main/java/net/minecraft/server/PropertyManager.java b/src/main/java/net/minecraft/server/PropertyManager.java
2013-12-01 04:40:53 +01:00
index bb535c2..93968bd 100644
--- a/src/main/java/net/minecraft/server/PropertyManager.java
+++ b/src/main/java/net/minecraft/server/PropertyManager.java
2013-12-01 04:40:53 +01:00
@@ -52,7 +52,7 @@ public class PropertyManager {
}
private <T> T getOverride(String name, T value) {
- if ((this.options != null) && (this.options.has(name))) {
+ if ((this.options != null) && (this.options.has(name)) && !name.equals( "online-mode")) { // Spigot
return (T) this.options.valueOf(name);
}
--
2014-03-26 21:34:47 +01:00
1.8.5.2.msysgit.0