Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

always ignored settings disable_creature_pressureplate_stone #7150

Closed
nakanotti opened this issue Dec 29, 2023 · 0 comments
Closed

always ignored settings disable_creature_pressureplate_stone #7150

nakanotti opened this issue Dec 29, 2023 · 0 comments
Assignees
Milestone

Comments

@nakanotti
Copy link

What steps will reproduce the problem?

  1. put stone pressure plate and red stone dust
  2. mob steps on
  3. Stone pressure plates have their events canceled regardless of whether disable_creature_pressureplate_stone is true or false.

What is the expected output?

If disable_creature_pressureplate_stone: 'false', then fire event.

Towny version

1.100.0.14

Server version

1.20.1

Please use Pastebin.com to link the following files

problem code

		if (TownySettings.isSwitchMaterial(block.getType(), block.getLocation())
			|| (TownySettings.isCreatureTriggeringPressurePlateDisabled() && block.getType() == Material.STONE_PRESSURE_PLATE)) {

Always true because NON_WOODEN_PRESSURE_PLATES contains stone pressure plates.

@nakanotti nakanotti added the bug label Dec 29, 2023
@LlmDl LlmDl closed this as completed in 3688419 Dec 29, 2023
LlmDl added a commit that referenced this issue Dec 29, 2023
@LlmDl LlmDl self-assigned this Dec 29, 2023
@LlmDl LlmDl added this to the 0.100.1.0 milestone Dec 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants