Skip to content

Issue with disabling Perspective #19

Open
@LaserSlime

Description

@LaserSlime

General Troubleshooting

  • I am using the latest version of the LabyMod 4 Server API.
  • I am using the latest version of LabyMod.
  • I have checked for similar issues on the Issue-tracker.
  • I have checked for Pull Requests that might already address this issue.

Platforms

Velocity

Affected Minecraft Version(s)

1.21.x

Expected Behaviour

Perspective mode should be disabled even if it was enabled on a another server.

Code Example for Reproduction Steps

@Subscribe
	public void onLabyPlayerJoin(LabyModPlayerJoinEvent e) {
		// Both of these cause the issue.
		//e.labyModPlayer().disableAddons("betterperspective");
		BetterPerspectivePlayer betterPerspectivePlayer = e.labyModPlayer().getIntegrationPlayer(BetterPerspectivePlayer.class);
		betterPerspectivePlayer.denyUnlockCamera();
	}

Exception or Error

N/A

Additional Information

Perspective stays enabled on servers where it should be disabled if it was enabled before.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingpendingThis issue or pull request still needs to be looked at

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions