no message

This commit is contained in:
雪风 2025-04-08 13:42:21 +08:00
parent 8263aed9d8
commit f78fed284c
3 changed files with 23 additions and 1 deletions

View File

@ -49,6 +49,7 @@ public class DropControl extends JPanel {
buffer.setGold_rate(GoldRate);
buffer.setItem_rate(ItemRate);
buffer.setTime_range(Time);
buffer.setExp_rate(ExpRate);
buffer.setStackable(IsStack);
Buf.add(buffer);
}

View File

@ -1,5 +1,6 @@
package server;
import java.io.IOException;
import java.util.Set;
import java.util.Iterator;
@ -103,6 +104,22 @@ public class ShutdownServer implements Runnable, ShutdownServerMBean {
System.out.println("[" + FileoutputUtil.CurrentReadable_Time() + "][信息]:服务端已经完全关闭了请点击右上角的xx按钮关闭.");
System.out.println("[" + FileoutputUtil.CurrentReadable_Time() + "][========================================]");
String property = System.getProperty("user.dir");
String batFilePath = property+"\\启动.bat";
Process process = null;
try {
process = Runtime.getRuntime().exec("cmd /c start " + batFilePath);
int exitCode = process.waitFor();
System.exit(0);
} catch (IOException e) {
throw new RuntimeException(e);
} catch (InterruptedException e) {
throw new RuntimeException(e);
}
}
@Override

View File

@ -529,7 +529,11 @@ public final class MapleMap {
for (MapleMonster mob : getAllMonstersThreadsafe()) {
if (!mob.getStats().isBoss()) {
mob.setPosition(getChrPos());
broadcastMessage(MobPacket.moveMonster(false, 0, 0, mob.getObjectId(), getChrPos(), mob.getPosition(), get吸怪Res()), mob.getPosition());
try {
broadcastMessage(MobPacket.moveMonster(false, 0, 0, mob.getObjectId(), getChrPos(), mob.getPosition(), get吸怪Res()), mob.getPosition());
}catch (Exception e){
}
}
}
}