mirror of
https://github.com/AtlasMediaGroup/TotalFreedomMod.git
synced 2024-11-26 17:05:01 +00:00
[SHOP] Fixes bug where not having the Shop enabled would cause an error to be thrown then the server is shutting down
This commit is contained in:
parent
a5135ef641
commit
f8e09665f5
@ -144,7 +144,7 @@ public class Shop extends FreedomService implements ShoppeCommons
|
||||
@Override
|
||||
public void onStop()
|
||||
{
|
||||
if (ConfigEntry.SHOP_REACTIONS_ENABLED.getBoolean())
|
||||
if (ConfigEntry.SHOP_REACTIONS_ENABLED.getBoolean() && reactions != null)
|
||||
{
|
||||
reactions.cancel();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user