mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +01:00
fix Explore task not work
This commit is contained in:
parent
262c250cbe
commit
c6b0659590
@ -1332,14 +1332,13 @@ public class JobsPaymentListener implements Listener {
|
||||
|
||||
Player player = event.getPlayer();
|
||||
|
||||
if (!Jobs.getGCManager().payExploringWhenFlying())
|
||||
if (!Jobs.getGCManager().payExploringWhenFlying() && player.isFlying())
|
||||
return;
|
||||
|
||||
ExploreRespond respond = Jobs.getExplore().ChunkRespond(event.getPlayer(), event.getNewChunk(), true);
|
||||
|
||||
if (!respond.isNewChunk())
|
||||
return;
|
||||
|
||||
// make sure plugin is enabled
|
||||
if (!this.plugin.isEnabled())
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user