mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-01-10 12:12:54 +08:00
Merge branch 'development' into unstable-quests
# Conflicts: # src/generated/main/java/emu/grasscutter/net/proto/ScenePointUnlockNotifyOuterClass.java # src/main/java/emu/grasscutter/game/dungeons/DungeonSystem.java # src/main/java/emu/grasscutter/server/packet/recv/HandlerCombatInvocationsNotify.java # src/main/java/emu/grasscutter/server/packet/recv/HandlerDungeonEntryInfoReq.java
This commit is contained in:
commit
361620de6d
@ -1 +1,2 @@
|
||||
org.gradle.jvmargs=-Xmx1024m
|
||||
# spikehd was here :)
|
||||
|
File diff suppressed because it is too large
Load Diff
@ -67,8 +67,8 @@ public class DungeonSystem extends BaseGameSystem {
|
||||
* @param player The player to send the entry info to.
|
||||
* @param pointId The dungeon point ID.
|
||||
*/
|
||||
public void sendEntryInfoFor(Player player, int pointId) {
|
||||
var entry = GameData.getScenePointEntryById(player.getScene().getId(), pointId);
|
||||
public void sendEntryInfoFor(Player player, int pointId, int sceneId) {
|
||||
var entry = GameData.getScenePointEntryById(sceneId, pointId);
|
||||
if (entry == null) {
|
||||
// An invalid point ID was sent.
|
||||
player.sendPacket(new PacketDungeonEntryInfoRsp());
|
||||
|
@ -94,8 +94,8 @@ public class HandlerCombatInvocationsNotify extends PacketHandler {
|
||||
}
|
||||
}
|
||||
|
||||
// MOTION_STATE_NOTIFY = Dont send to other players
|
||||
if (motionState == MotionState.MOTION_STATE_NOTIFY) {
|
||||
// as long as one of these two packets be forwarded to client, the animation of avatar will be interrupted
|
||||
if (motionState == MotionState.MOTION_STATE_NOTIFY || motionState == MotionState.MOTION_STATE_FIGHT) {
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
@ -13,6 +13,6 @@ public class HandlerDungeonEntryInfoReq extends PacketHandler {
|
||||
public void handle(GameSession session, byte[] header, byte[] payload) throws Exception {
|
||||
DungeonEntryInfoReq req = DungeonEntryInfoReq.parseFrom(payload);
|
||||
|
||||
session.getServer().getDungeonSystem().sendEntryInfoFor(session.getPlayer(), req.getPointId());
|
||||
session.getServer().getDungeonSystem().sendEntryInfoFor(session.getPlayer(), req.getPointId(), req.getSceneId());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user