Change AlchemyBrewCheckTask to be run at the block location instead of the player

This commit is contained in:
TechnicallyCoded 2023-10-09 10:37:14 +02:00
parent a01196f345
commit 71c079f9dc
No known key found for this signature in database
GPG Key ID: 258C4DBC0BF4AF73

View File

@ -259,8 +259,9 @@ public final class AlchemyPotionBrewer {
}
public static void scheduleCheck(Player player, BrewingStand brewingStand) {
// TODO TECH CHECK - should be runAtLocation? We are using block data AND player data. Must resolve correctly
mcMMO.p.getFoliaLib().getImpl().runAtEntity(player, new AlchemyBrewCheckTask(player, brewingStand));
// TODO FOLIA - Player thread safety is needed. Opted to use the brewing stand location since world data is
// probably more sensitive.
mcMMO.p.getFoliaLib().getImpl().runAtLocation(brewingStand.getLocation(), new AlchemyBrewCheckTask(player, brewingStand));
}
public static void scheduleUpdate(Inventory inventory) {