Remove sitting height setting.
This commit is contained in:
parent
83e4f447a8
commit
89309be623
@ -29,7 +29,7 @@ public class Chairs extends JavaPlugin {
|
||||
public boolean autoRotate, signCheck, notifyplayer;
|
||||
public boolean invertedStairCheck, invertedStepCheck, ignoreIfBlockInHand;
|
||||
public boolean sitEffectsEnabled;
|
||||
public double sittingHeight, sittingHeightAdj, distance;
|
||||
public double sittingHeightAdj, distance;
|
||||
public int maxChairWidth;
|
||||
public int sitMaxHealth;
|
||||
public int sitHealthPerInterval;
|
||||
@ -144,7 +144,6 @@ public class Chairs extends JavaPlugin {
|
||||
public void loadConfig() {
|
||||
autoRotate = getConfig().getBoolean("auto-rotate");
|
||||
signCheck = getConfig().getBoolean("sign-check");
|
||||
sittingHeight = getConfig().getDouble("sitting-height");
|
||||
sittingHeightAdj = getConfig().getDouble("sitting-height-adj");
|
||||
distance = getConfig().getDouble("distance");
|
||||
maxChairWidth = getConfig().getInt("max-chair-width");
|
||||
@ -171,7 +170,7 @@ public class Chairs extends JavaPlugin {
|
||||
allowedBlocks = new ArrayList<ChairBlock>();
|
||||
for (String s : getConfig().getStringList("allowed-blocks")) {
|
||||
String type;
|
||||
double sh = sittingHeight;
|
||||
double sh = 0.7;
|
||||
String d = "0";
|
||||
if (s.contains(":")) {
|
||||
String tmp[] = s.split(":",3);
|
||||
|
@ -221,7 +221,7 @@ public class EventListener implements Listener {
|
||||
|
||||
private Location getSitLocation(Block block, Float playerYaw)
|
||||
{
|
||||
double sh = plugin.sittingHeight;
|
||||
double sh = 0.7;
|
||||
|
||||
for (ChairBlock cb : plugin.allowedBlocks) {
|
||||
if (cb.getMat().toString().contains("STAIRS")) {
|
||||
|
@ -16,16 +16,16 @@
|
||||
# ignore-if-item-in-hand: Set this true disable sititng if player is holding an item in hand.
|
||||
# ------
|
||||
allowed-blocks:
|
||||
- WOOD_STAIRS
|
||||
- SPRUCE_WOOD_STAIRS
|
||||
- JUNGLE_WOOD_STAIRS
|
||||
- BIRCH_WOOD_STAIRS
|
||||
- SANDSTONE_STAIRS
|
||||
- COBBLESTONE_STAIRS
|
||||
- BRICK_STAIRS
|
||||
- SMOOTH_STAIRS
|
||||
- NETHER_BRICK_STAIRS
|
||||
- QUARTZ_STAIRS
|
||||
- WOOD_STAIRS:0.7
|
||||
- SPRUCE_WOOD_STAIRS:0.7
|
||||
- JUNGLE_WOOD_STAIRS:0.7
|
||||
- BIRCH_WOOD_STAIRS:0.7
|
||||
- SANDSTONE_STAIRS:0.7
|
||||
- COBBLESTONE_STAIRS:0.7
|
||||
- BRICK_STAIRS:0.7
|
||||
- SMOOTH_STAIRS:0.7
|
||||
- NETHER_BRICK_STAIRS:0.7
|
||||
- QUARTZ_STAIRS:0.7
|
||||
valid-signs:
|
||||
- SIGN
|
||||
- WALL_SIGN
|
||||
@ -36,7 +36,6 @@ max-chair-width: 3
|
||||
sign-check: false
|
||||
distance: 2
|
||||
disabledRegions: []
|
||||
sitting-height: 0.7
|
||||
sitting-height-adj: 1.0
|
||||
notify-player: true
|
||||
upside-down-check: true
|
||||
|
Loading…
Reference in New Issue
Block a user