Fix wither and dead bodies bug
This commit is contained in:
parent
3f66e11b3d
commit
7496ed763a
@ -1637,7 +1637,12 @@ public abstract class Game implements Listener
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Team team = Scoreboard.GetScoreboard().registerNewTeam(name);
|
Team team = Scoreboard.GetScoreboard().getTeam(ChatColor.COLOR_CHAR + "DeadBody");
|
||||||
|
|
||||||
|
if (team == null)
|
||||||
|
{
|
||||||
|
team = Scoreboard.GetScoreboard().registerNewTeam(ChatColor.COLOR_CHAR + "DeadBody");
|
||||||
|
}
|
||||||
|
|
||||||
team.setNameTagVisibility(NameTagVisibility.NEVER);
|
team.setNameTagVisibility(NameTagVisibility.NEVER);
|
||||||
team.addEntry(name);
|
team.addEntry(name);
|
||||||
|
@ -332,7 +332,7 @@ public class WitherGame extends TeamGame implements IBlockRestorer
|
|||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if(!GetKit(event.getPlayer()).GetName().contentEquals("Human Editor"))
|
if(GetKit(event.getPlayer()) != null && !GetKit(event.getPlayer()).GetName().contentEquals("Human Editor"))
|
||||||
{
|
{
|
||||||
event.setCancelled(true);
|
event.setCancelled(true);
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user