Commit 9a9205b9 by 李进峰

update place

parent 31f6d74a
......@@ -774,7 +774,6 @@ public class GameEnv implements Serializable{
if(npcInstanceBoolean) {
List<Attr> attrs = npcInstance.getAttrs();
for(int j=0; j<attrs.size(); j++) {
if(names[3].equals(attrs.get(j).getName())) {
if(names[3].equals("跟随玩家")) {
if(value.equals("是")) {
this.followNpcIndex.put(npcInstance.getName(), npcInstance);
......@@ -794,6 +793,7 @@ public class GameEnv implements Serializable{
npcInstances.add(npcInstance);
return true;
}else {
if(names[3].equals(attrs.get(j).getName())) {
attrs.get(j).setValue(value);
return true;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment