Fixed an error, now works for 1.11.1, no idea what the piggy is for

This commit is contained in:
libraryaddict
2016-12-21 17:17:44 +13:00
parent e1cd672207
commit fb05441f78
4 changed files with 26 additions and 11 deletions

View File

@@ -995,7 +995,7 @@ public class DisguiseUtilities {
if (DisguiseConfig.getPushingOption() != DisguisePushing.IGNORE) {
// Code to stop player pushing in 1.9
Scoreboard scoreboard = player.getScoreboard();
Team team = scoreboard.getTeam(prevTeam);
Team team = prevTeam == null ? null : scoreboard.getTeam(prevTeam);
Team ldTeam = scoreboard.getEntryTeam(player.getName());
if (ldTeam != null) {