Towny Classic

Towny Classic

3.2k Downloads

always ignored settings disable_creature_pressureplate_stone

nakanotti opened this issue ยท 0 comments

commented

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.