make fishhook_tp configurable

This commit is contained in:
dragon 2022-08-11 19:33:18 +08:00 committed by Luke H-W
parent 46223c8976
commit 823980046e
2 changed files with 3 additions and 1 deletions

View File

@ -191,6 +191,7 @@ public class ConfigContainer {
public boolean enableShopItems = true;
public boolean staminaUsage = true;
public boolean energyUsage = false;
public boolean fishhookTeleport = true;
public ResinOptions resinOptions = new ResinOptions();
public Rates rates = new Rates();

View File

@ -1,5 +1,6 @@
package emu.grasscutter.game.managers.mapmark;
import emu.grasscutter.config.Configuration;
import emu.grasscutter.game.player.BasePlayerManager;
import emu.grasscutter.game.player.Player;
import emu.grasscutter.net.proto.MapMarkPointTypeOuterClass.MapMarkPointType;
@ -29,7 +30,7 @@ public class MapMarksManager extends BasePlayerManager {
case OPERATION_ADD -> {
MapMark createMark = new MapMark(req.getMark());
// keep teleporting functionality on fishhook mark.
if (createMark.getMapMarkPointType() == MapMarkPointType.MAP_MARK_POINT_TYPE_FISH_POOL) {
if (Configuration.GAME_OPTIONS.fishhookTeleport && createMark.getMapMarkPointType() == MapMarkPointType.MAP_MARK_POINT_TYPE_FISH_POOL) {
this.teleport(player, createMark);
return;
}