From 537c6694e152de8c51c2304714fd0a83df40e74f Mon Sep 17 00:00:00 2001
From: Kenzie Togami <ket1999@gmail.com>
Date: Wed, 22 Feb 2017 23:34:27 -0800
Subject: [PATCH] [Forge] Update to 1.11.2

---
 gradle/wrapper/gradle-wrapper.jar             | Bin 54224 -> 54208 bytes
 gradle/wrapper/gradle-wrapper.properties      |   4 ++--
 gradlew                                       |  11 ++++++-----
 worldedit-forge/build.gradle                  |   6 +++---
 .../com/sk89q/worldedit/forge/ForgeWorld.java |   2 +-
 .../worldedit/forge/WECUIPacketHandler.java   |   2 +-
 6 files changed, 13 insertions(+), 12 deletions(-)

diff --git a/gradle/wrapper/gradle-wrapper.jar b/gradle/wrapper/gradle-wrapper.jar
index d6e2637affb74a80bfbe87bd2da57e81b2f3c661..0b84804200ad74455051fb13657ff44ca14206f0 100644
GIT binary patch
delta 4750
zcmZ`*2{@G78~>PW6S5m)EZGWKqOv7P$`U0aqOpa+mE|fGCM~)M@hM9v6y0QBW5~_E
zZ;6uiwult@cax<5`6lZ7xc5BIndf`wyuaVOob#UZc4gsevT&S-jB)GuAc&O}@;GH-
z6vHXT`AcdLPum}(byOp9#&_120s5tC3sfO67?B?^)`5A_*HsC(N++gmBmM^+f{6Jn
zi;{}u7;tPT8CJuOqQs(&>m^tSzraod?~{C(A&83|f>a^cp^hK+=8>Qt^AmOz3f^Vi
z^L*;lMz3*8ja+!Q^rq5S0fQKmdl?P7VaeqMj+3R^?2O6pBCRSNON<=F`S28t8|KD?
zTnS^L$CcZ<gzifPgnBcn+SbmjFMr3O*5<7nP;K{YR`&f9)upHpV`oM_e;Mu@S^C_l
z!=N5cej7l#%NfWc_(VBpj2fXi9$;E~HA>3JeU4^R)fFY!w<zuZF_x%!f9%BeqePcM
zGt1WSsN)7HnTnJIk49RQh*2Pmr$~IkZ7-6@k@D%8xGEd1>KANc{vr%S&D>FU#>u=l
zb-gL&q52%;?wKPTWZnsd)Ye-M)sJsZrK$Tn1kz@bcavue{p(vaZ&0=3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-ur5~Kx3b^Lpr=+P59kmx!gAR%FxGlUBP
zpc#a27_o8!XH*c}ewrAES3=>W2LiBgC;9iTqdPS3L>$_kpr@12DTz_m(v_)EKq&$L
z(@DT6dAblwJ(zB3-X)GvM$nb68E{&cE}EZVCF`6vNVW~!Ay|G}v*?cAcrd{--GUfr
zCf!J+jvSbpqae3>K@Noard<U4q?u>+viHFcyA{yE_w8UK6@dkx12?Z0rZ~kV^x#n?
zLVqlgelPLe1YjHiDvC8Ky-7F9?-9eW?dn0;PT!_0IeLj0r9v;FG`b6vWH_)_2u-iD
zzC17u&?^S?v@!HltLb>IYT_UCK1gzWF#<ct7#J#Jj5ge-ZxXFOVRR5-Z{n>^fE@%u
z)G+v(8hVhTzIA9k=5c_*zkUEVl<MjY$n~?)7U}A|V2Wb!UJbBtgE(B=&&_<V0nz*y
DTMPnE

diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties
index 589dd6099..0faacbdf0 100644
--- a/gradle/wrapper/gradle-wrapper.properties
+++ b/gradle/wrapper/gradle-wrapper.properties
@@ -1,6 +1,6 @@
-#Wed Nov 23 21:39:25 PST 2016
+#Wed Feb 22 23:32:37 PST 2017
 distributionBase=GRADLE_USER_HOME
 distributionPath=wrapper/dists
 zipStoreBase=GRADLE_USER_HOME
 zipStorePath=wrapper/dists
-distributionUrl=https\://services.gradle.org/distributions/gradle-3.2.1-bin.zip
+distributionUrl=https\://services.gradle.org/distributions/gradle-3.4-bin.zip
diff --git a/gradlew b/gradlew
index 4ef3a871f..4453ccea3 100755
--- a/gradlew
+++ b/gradlew
@@ -155,13 +155,14 @@ if $cygwin ; then
 fi
 
 # Escape application args
-for s in "${@}" ; do
-    s=\"$s\"
-    APP_ARGS=$APP_ARGS" "$s
-done
+save ( ) {
+    for i do printf %s\\n "$i" | sed "s/'/'\\\\''/g;1s/^/'/;\$s/\$/' \\\\/" ; done
+    echo " "
+}
+APP_ARGS=$(save "$@")
 
 # Collect all arguments for the java command, following the shell quoting and substitution rules
-eval set -- "$DEFAULT_JVM_OPTS" "$JAVA_OPTS" "$GRADLE_OPTS" "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
+eval set -- $DEFAULT_JVM_OPTS $JAVA_OPTS $GRADLE_OPTS "\"-Dorg.gradle.appname=$APP_BASE_NAME\"" -classpath "\"$CLASSPATH\"" org.gradle.wrapper.GradleWrapperMain "$APP_ARGS"
 
 # by default we should be in the correct project dir, but when run from Finder on Mac, the cwd is wrong
 if [ "$(uname)" = "Darwin" ] && [ "$HOME" = "$PWD" ]; then
diff --git a/worldedit-forge/build.gradle b/worldedit-forge/build.gradle
index c4b2dc971..e7f08bbab 100644
--- a/worldedit-forge/build.gradle
+++ b/worldedit-forge/build.gradle
@@ -26,11 +26,11 @@ repositories {
     }
 }
 
-ext.forgeVersion = "13.19.1.2189"
+ext.forgeVersion = "13.20.0.2237"
 
 minecraft {
-    version = "1.11-${project.forgeVersion}"
-    mappings = "snapshot_20161209"
+    version = "1.11.2-${project.forgeVersion}"
+    mappings = "snapshot_20170221"
     runDir = 'run'
 
     replaceIn "com/sk89q/worldedit/forge/ForgeWorldEdit.java"
diff --git a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java
index 562afb126..ec6541ce9 100644
--- a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java
+++ b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/ForgeWorld.java
@@ -278,7 +278,7 @@ public class ForgeWorld extends AbstractWorld {
         AnvilSaveHandler saveHandler = new AnvilSaveHandler(saveFolder,
                 originalWorld.getSaveHandler().getWorldDirectory().getName(), true, server.getDataFixer());
         World freshWorld = new WorldServer(server, saveHandler, originalWorld.getWorldInfo(),
-                originalWorld.provider.getDimension(), originalWorld.theProfiler).init();
+                originalWorld.provider.getDimension(), originalWorld.profiler).init();
 
         // Pre-gen all the chunks
         // We need to also pull one more chunk in every direction
diff --git a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/WECUIPacketHandler.java b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/WECUIPacketHandler.java
index 4a87abba4..01f421c59 100644
--- a/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/WECUIPacketHandler.java
+++ b/worldedit-forge/src/main/java/com/sk89q/worldedit/forge/WECUIPacketHandler.java
@@ -67,6 +67,6 @@ public class WECUIPacketHandler {
     }
 
     private static EntityPlayerMP getPlayerFromEvent(ServerCustomPacketEvent event) {
-        return ((NetHandlerPlayServer) event.getHandler()).playerEntity;
+        return ((NetHandlerPlayServer) event.getHandler()).player;
     }
 }
\ No newline at end of file