Prevent inf loop when adding air to kits.

Should fix #4555
This commit is contained in:
KHobbits 2013-08-12 00:26:09 +01:00
parent c43574eab9
commit e9c0bd3bab
3 changed files with 10 additions and 2 deletions

View file

@ -150,6 +150,10 @@ public abstract class UserData extends PlayerExtension implements IConf
{
try
{
if (getHomes().isEmpty())
{
return null;
}
Location loc;
for (String home : getHomes())
{
@ -476,7 +480,6 @@ public abstract class UserData extends PlayerExtension implements IConf
config.setProperty("teleportenabled", set);
config.save();
}
private List<String> ignoredPlayers;
public List<String> _getIgnoredPlayers()