fix: 传送门 & 视角

This commit is contained in:
AncTe committed 2024-08-30 00:23:29 +08:00
1 parent cd9c95d24d
commit 7581a5ae5d
13 files changed
+158 -32

No files matched your search

+2 -1
View File
@@ -46,7 +46,8 @@ const haloColor: Record<number, string[]> = {
25: ['purple'],
26: ['blue'],
27: ['red'],
29: ['#3CFF49']
29: ['#3CFF49'],
31: ['#51E9FF']
};
class Halo extends Sprite {
+6 -1
View File
@@ -44,7 +44,6 @@ export {};
delete core.status.mapBlockObjs[data];
core.extractBlocks(data);
if (data === core.status.floorId) {
core.drawMap(data);
let weather = core.getFlag('__weather__', null);
if (!weather && core.status.thisMap.weather)
weather = core.status.thisMap.weather;
@@ -54,6 +53,12 @@ export {};
core.updateStatusBar(true, true);
}
Mota.require('module', 'Shadow').Shadow.update(true);
const Binder = Mota.require('module', 'Render').LayerGroupFloorBinder;
Binder.activedBinder.forEach(v => {
if (v.getFloor() === core.status.floorId) {
v.updateBindData();
}
});
console.log(`Floor hot reload: ${data}`);
}