mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-21 03:15:59 +01:00
Medicine revival&Login white screen (#1883)
* Update InventorySystem.java -:[fix] Medicine revival * Update GameMainQuest.java -:[fix] Login white screen
This commit is contained in:
@@ -778,7 +778,7 @@ public class InventorySystem extends BaseGameSystem {
|
||||
}
|
||||
|
||||
int[] satiationParams = itemData.getSatiationParams();
|
||||
if (satiationParams != null && target.isPresent()) {
|
||||
if (satiationParams != null && satiationParams.length > 0 && target.isPresent()) {
|
||||
// Invoke and call player use food event.
|
||||
var event = new PlayerUseFoodEvent(params.player, itemData, params.targetAvatar.getAsEntity()); event.call();
|
||||
if (event.isCanceled()) return false;
|
||||
|
||||
Reference in New Issue
Block a user