Read more...

- Fixed issue where player's building was manipulated instead of the
player themself.
This commit is contained in:
Treeku
2014-07-15 06:22:35 +01:00
parent 7e1d0b99a9
commit 27371a6a4b
+2 -2
View File
@@ -649,7 +649,7 @@ public class ObjectService implements INetworkDispatch {
if(obj.getCustomName() == null)
continue;
if(obj.getCustomName().startsWith(customName) || obj.getCustomName().toUpperCase().startsWith(WordUtils.capitalize(customName)))
return obj;
return ((obj instanceof CreatureObject) ? obj : null);
}
}
@@ -664,7 +664,7 @@ public class ObjectService implements INetworkDispatch {
}
if (object.getCustomName() != null && customName.length() > 0 && (object.getCustomName().startsWith(customName) || object.getCustomName().toUpperCase().startsWith(WordUtils.capitalize(customName)))) {
return object;
return ((object instanceof CreatureObject) ? object : null);
}
}
cursor.close();