mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 06:06:45 +01:00
Change AlchemyBrewCheckTask to be run at the block location instead of the player
This commit is contained in:
parent
a01196f345
commit
71c079f9dc
@ -259,8 +259,9 @@ public final class AlchemyPotionBrewer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public static void scheduleCheck(Player player, BrewingStand brewingStand) {
|
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
|
// TODO FOLIA - Player thread safety is needed. Opted to use the brewing stand location since world data is
|
||||||
mcMMO.p.getFoliaLib().getImpl().runAtEntity(player, new AlchemyBrewCheckTask(player, brewingStand));
|
// probably more sensitive.
|
||||||
|
mcMMO.p.getFoliaLib().getImpl().runAtLocation(brewingStand.getLocation(), new AlchemyBrewCheckTask(player, brewingStand));
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void scheduleUpdate(Inventory inventory) {
|
public static void scheduleUpdate(Inventory inventory) {
|
||||||
|
Loading…
Reference in New Issue
Block a user