SPIGOT-3377: Fix subspace bubble advancement

This commit is contained in:
md_5 2017-06-26 10:16:54 +10:00
parent 477fb2bb72
commit 9de5cb59a0

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());
+ }
+