Add ladder to blocks that are ignored by passable by default (not by

config).
This commit is contained in:
asofold 2012-10-24 03:51:08 +02:00
parent cfc9f32387
commit e6e9cb9805
2 changed files with 3 additions and 3 deletions

View File

@ -22,7 +22,7 @@ import org.bukkit.Material;
public class DefaultConfig extends ConfigFile { public class DefaultConfig extends ConfigFile {
/** NCP build needed for this config. */ /** NCP build needed for this config. */
public static final int buildNumber = 164; public static final int buildNumber = 169;
/** /**
* Instantiates a new default configuration. * Instantiates a new default configuration.
@ -434,8 +434,7 @@ public class DefaultConfig extends ConfigFile {
set(ConfPaths.COMPATIBILITY_BLOCKS + ConfPaths.SUB_IGNOREPASSABLE, Arrays.asList( set(ConfPaths.COMPATIBILITY_BLOCKS + ConfPaths.SUB_IGNOREPASSABLE, Arrays.asList(
Material.WOODEN_DOOR.name(), Material.IRON_DOOR_BLOCK.name(), Material.WOODEN_DOOR.name(), Material.IRON_DOOR_BLOCK.name(),
Material.PISTON_EXTENSION.name(), Material.PISTON_EXTENSION.name(),
Material.PISTON_MOVING_PIECE.name(), // TODO: ? Material.PISTON_MOVING_PIECE.name() // TODO: ?
Material.LADDER.name()
)); ));
// Update internal factory based on all the new entries to the "actions" section. // Update internal factory based on all the new entries to the "actions" section.

View File

@ -355,6 +355,7 @@ public class BlockProperties {
Material.WOOD_PLATE, Material.STONE_PLATE, Material.WOOD_PLATE, Material.STONE_PLATE,
Material.WALL_SIGN, Material.SIGN_POST, Material.WALL_SIGN, Material.SIGN_POST,
Material.DIODE_BLOCK_ON, Material.DIODE_BLOCK_OFF, Material.DIODE_BLOCK_ON, Material.DIODE_BLOCK_OFF,
Material.LADDER,
}){ }){
blockFlags[mat.getId()] |= F_IGN_PASSABLE; blockFlags[mat.getId()] |= F_IGN_PASSABLE;
} }