forked from MagicBane/Server
Ai player
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
package engine.devcmd.cmds;
|
||||
|
||||
import engine.Enum;
|
||||
import engine.InterestManagement.WorldGrid;
|
||||
import engine.devcmd.AbstractDevCmd;
|
||||
import engine.math.Vector3fImmutable;
|
||||
import engine.objects.*;
|
||||
import engine.server.MBServerStatics;
|
||||
import org.pmw.tinylog.Logger;
|
||||
|
||||
/**
|
||||
@@ -37,8 +39,13 @@ public class RebootCmd extends AbstractDevCmd {
|
||||
, (byte) 1, (byte) 1,
|
||||
(byte) 1, (byte) 1, (byte) 1);
|
||||
|
||||
newPLayer.runAfterLoad();
|
||||
newPLayer.setLoc(pc.loc);
|
||||
|
||||
newPLayer.setObjectTypeMask(MBServerStatics.MASK_PLAYER);
|
||||
WorldGrid.addObject(newPLayer,pc.loc.x,pc.loc.z);
|
||||
WorldGrid.updateObject(newPLayer);
|
||||
//WorldGrid.updateObject(newPLayer);
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -618,6 +618,8 @@ public abstract class AbstractWorldObject extends AbstractGameObject {
|
||||
}
|
||||
|
||||
public GridObjectType getGridObjectType() {
|
||||
if(gridObjectType == null)
|
||||
gridObjectType = GridObjectType.DYNAMIC;
|
||||
return gridObjectType;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user