mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-15 08:25:21 +01:00
Enable script in big world (#884)
* add docs for tower * fix: LEAK: ByteBuf.release() was not called * enableScriptInBigWorld * not print log when loaded scripts from cache * revert the change of server tick * revert the change of server tick * fix * optimize the performance: lazy load & cache * fix the refresh group * fix NPE Co-authored-by: Melledy <52122272+Melledy@users.noreply.github.com>
This commit is contained in:
@@ -136,6 +136,7 @@ public class ConfigContainer {
|
||||
public int bindPort = 22102;
|
||||
/* This is the port used in the default region. */
|
||||
public int accessPort = 0;
|
||||
public boolean enableScriptInBigWorld = false;
|
||||
|
||||
public GameOptions gameOptions = new GameOptions();
|
||||
public JoinOptions joinOptions = new JoinOptions();
|
||||
|
||||
@@ -155,4 +155,10 @@ public class Position implements Serializable {
|
||||
.setZ(this.getZ())
|
||||
.build();
|
||||
}
|
||||
public long[] toLongArray(){
|
||||
return new long[]{(long) x, (long) y, (long) z};
|
||||
}
|
||||
public long[] toXZLongArray(){
|
||||
return new long[]{(long) x, (long) z};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user