From dd388142093919b3a94820f3ba645882050297db Mon Sep 17 00:00:00 2001 From: Aru Date: Sat, 30 Apr 2022 19:18:09 +0800 Subject: [PATCH] Monsters should drop items in world (#373) * Monsters should drop items in world fix the typo introduced in https://github.com/Grasscutters/Grasscutter/pull/366/commits/f1934c3a47d6c7ef888581bcf7f361d063154215 * Determine whether in dungeon scene --- src/main/java/emu/grasscutter/game/world/Scene.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/emu/grasscutter/game/world/Scene.java b/src/main/java/emu/grasscutter/game/world/Scene.java index 365b55982..440ec7316 100644 --- a/src/main/java/emu/grasscutter/game/world/Scene.java +++ b/src/main/java/emu/grasscutter/game/world/Scene.java @@ -375,7 +375,7 @@ public class Scene { this.broadcastPacket(new PacketLifeStateChangeNotify(attackerId, target, LifeState.LIFE_DEAD)); // Reward drop - if (target instanceof EntityMonster && this.getSceneType() != SceneType.SCENE_WORLD) { + if (target instanceof EntityMonster && this.getSceneType() != SceneType.SCENE_DUNGEON) { getWorld().getServer().getDropManager().callDrop((EntityMonster) target); }