SPIGOT-3377: Fix subspace bubble advancement

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2017-06-26 10:16:54 +10:00
parent 1396c4c1ec
commit 13bcc894ec

View file

@ -499,7 +499,7 @@
+
+ // Fire advancement trigger
+ CriterionTriggers.u.a(entityplayer, ((CraftWorld) fromWorld).getHandle().worldProvider.getDimensionManager(), worldserver.worldProvider.getDimensionManager());
+ if (worldserver.worldProvider.getDimensionManager() == DimensionManager.NETHER && ((CraftWorld) fromWorld).getHandle().worldProvider.getDimensionManager() == DimensionManager.OVERWORLD && entityplayer.Q() != null) {
+ if (((CraftWorld) fromWorld).getHandle().worldProvider.getDimensionManager() == DimensionManager.NETHER && worldserver.worldProvider.getDimensionManager() == DimensionManager.OVERWORLD && entityplayer.Q() != null) {
+ CriterionTriggers.B.a(entityplayer, entityplayer.Q());
+ }
+