Add obfuscation helper patch to assist update process.
By: md_5 <git@md-5.net>
This commit is contained in:
23
CraftBukkit-Patches/0027-Remove-o-Option.patch
Normal file
23
CraftBukkit-Patches/0027-Remove-o-Option.patch
Normal file
@@ -0,0 +1,23 @@
|
||||
From 149cdfe128beb0df0d9055d33a40d3b7da5e179c 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
|
||||
index bb535c2..93968bd 100644
|
||||
--- a/src/main/java/net/minecraft/server/PropertyManager.java
|
||||
+++ b/src/main/java/net/minecraft/server/PropertyManager.java
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
--
|
||||
1.8.3.2
|
||||
|
||||
Reference in New Issue
Block a user