mirror of
https://github.com/PikaMug/Quests.git
synced 2024-11-22 10:36:09 +01:00
Restore missing NPC effects, see #2189
This commit is contained in:
parent
ff4dcacea8
commit
f440ea43cd
@ -41,8 +41,7 @@ public class BukkitNpcEffectThread implements Runnable {
|
|||||||
for (final Entity entity : nearby) {
|
for (final Entity entity : nearby) {
|
||||||
final UUID uuid = plugin.getDependencies().getUuidFromNpc(entity);
|
final UUID uuid = plugin.getDependencies().getUuidFromNpc(entity);
|
||||||
if (uuid != null) {
|
if (uuid != null) {
|
||||||
showConfigEffect(plugin.getQuester(player.getUniqueId()), entity.getUniqueId(),
|
showConfigEffect(plugin.getQuester(player.getUniqueId()), uuid, entity.getLocation());
|
||||||
entity.getLocation());
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -91,6 +90,7 @@ public class BukkitNpcEffectThread implements Runnable {
|
|||||||
*/
|
*/
|
||||||
public void showConfigEffect(final BukkitQuester quester, final UUID targetUuid, final Location targetLocation) {
|
public void showConfigEffect(final BukkitQuester quester, final UUID targetUuid, final Location targetLocation) {
|
||||||
if (targetUuid != null) {
|
if (targetUuid != null) {
|
||||||
|
targetLocation.add(0, 2, 0);
|
||||||
final BukkitQuesterPostViewEffectEvent event;
|
final BukkitQuesterPostViewEffectEvent event;
|
||||||
if (quester.canAcceptQuest(targetUuid)) {
|
if (quester.canAcceptQuest(targetUuid)) {
|
||||||
showEffect(quester.getPlayer(), targetLocation, plugin.getConfigSettings().getEffect());
|
showEffect(quester.getPlayer(), targetLocation, plugin.getConfigSettings().getEffect());
|
||||||
|
Loading…
Reference in New Issue
Block a user