Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-12-28 00:50:13 +01:00
Option to (not) remap infested blocks to their normal variants
Fixes #1642
Dieser Commit ist enthalten in:
Ursprung
1ef9dc8de6
Commit
116706c09f
@ -245,6 +245,11 @@ public class BukkitViaConfig extends Config implements ViaVersionConfig {
|
|||||||
return getBoolean("fix-low-snow-collision", false);
|
return getBoolean("fix-low-snow-collision", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isInfestedBlocksFix() {
|
||||||
|
return getBoolean("fix-infested-block-breaking", true);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int get1_13TabCompleteDelay() {
|
public int get1_13TabCompleteDelay() {
|
||||||
return getInt("1_13-tab-complete-delay", 0);
|
return getInt("1_13-tab-complete-delay", 0);
|
||||||
|
@ -298,6 +298,11 @@ public class BungeeViaConfig extends Config implements ViaVersionConfig {
|
|||||||
return getBoolean("fix-low-snow-collision", false);
|
return getBoolean("fix-low-snow-collision", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isInfestedBlocksFix() {
|
||||||
|
return getBoolean("fix-infested-block-breaking", true);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int get1_13TabCompleteDelay() {
|
public int get1_13TabCompleteDelay() {
|
||||||
return getInt("1_13-tab-complete-delay", 0);
|
return getInt("1_13-tab-complete-delay", 0);
|
||||||
|
@ -303,6 +303,13 @@ public interface ViaVersionConfig {
|
|||||||
*/
|
*/
|
||||||
boolean isSnowCollisionFix();
|
boolean isSnowCollisionFix();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* When activated, infested blocks will be mapped to their normal stone variants for 1.13+ clients.
|
||||||
|
*
|
||||||
|
* @return True if enabled
|
||||||
|
*/
|
||||||
|
boolean isInfestedBlocksFix();
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* When greater than 0, enables tab complete request delaying by x ticks
|
* When greater than 0, enables tab complete request delaying by x ticks
|
||||||
*
|
*
|
||||||
|
@ -202,12 +202,14 @@ public class MappingData {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Remap infested blocks, as they are instantly breakabale in 1.13+ and can't be broken by those clients on older servers
|
// Remap infested blocks, as they are instantly breakabale in 1.13+ and can't be broken by those clients on older servers
|
||||||
oldToNew[1552] = 1; // stone
|
if (Via.getConfig().isInfestedBlocksFix()) {
|
||||||
oldToNew[1553] = 14; // cobblestone
|
oldToNew[1552] = 1; // stone
|
||||||
oldToNew[1554] = 3983; // stone bricks
|
oldToNew[1553] = 14; // cobblestone
|
||||||
oldToNew[1555] = 3984; // mossy stone bricks
|
oldToNew[1554] = 3983; // stone bricks
|
||||||
oldToNew[1556] = 3985; // cracked stone bricks
|
oldToNew[1555] = 3984; // mossy stone bricks
|
||||||
oldToNew[1557] = 3986; // chiseled stone bricks
|
oldToNew[1556] = 3985; // cracked stone bricks
|
||||||
|
oldToNew[1557] = 3986; // chiseled stone bricks
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
@ -118,6 +118,8 @@ disable-1_13-auto-complete: false
|
|||||||
1_13-tab-complete-delay: 0
|
1_13-tab-complete-delay: 0
|
||||||
# For 1.13 clients the smallest (1 layer) snow doesn't have collision, this will send these as 2 snowlayers for 1.13+ clients to prevent them bugging through them
|
# For 1.13 clients the smallest (1 layer) snow doesn't have collision, this will send these as 2 snowlayers for 1.13+ clients to prevent them bugging through them
|
||||||
fix-low-snow-collision: false
|
fix-low-snow-collision: false
|
||||||
|
# Infested blocks are instantly breakable for 1.13+ clients, resulting in them being unable to break them on sub 1.13 servers. This remaps them to their normal stone variants
|
||||||
|
fix-infested-block-breaking: true
|
||||||
# In 1.14 the client page limit has been upped to 100 (from 50). Some anti-exploit plugins ban when clients go higher than 50. This option cuts edited books to 50 pages.
|
# In 1.14 the client page limit has been upped to 100 (from 50). Some anti-exploit plugins ban when clients go higher than 50. This option cuts edited books to 50 pages.
|
||||||
truncate-1_14-books: false
|
truncate-1_14-books: false
|
||||||
# This prevents clients using 1.9-1.13 on 1.8 servers from receiving no knockback/having velocity bugs whilst sneaking under a block.
|
# This prevents clients using 1.9-1.13 on 1.8 servers from receiving no knockback/having velocity bugs whilst sneaking under a block.
|
||||||
|
@ -251,6 +251,11 @@ public class SpongeViaConfig extends Config implements ViaVersionConfig {
|
|||||||
return getBoolean("fix-low-snow-collision", false);
|
return getBoolean("fix-low-snow-collision", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isInfestedBlocksFix() {
|
||||||
|
return getBoolean("fix-infested-block-breaking", true);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int get1_13TabCompleteDelay() {
|
public int get1_13TabCompleteDelay() {
|
||||||
return getInt("1_13-tab-complete-delay", 0);
|
return getInt("1_13-tab-complete-delay", 0);
|
||||||
|
@ -303,6 +303,11 @@ public class VelocityViaConfig extends Config implements ViaVersionConfig {
|
|||||||
return getBoolean("fix-low-snow-collision", false);
|
return getBoolean("fix-low-snow-collision", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean isInfestedBlocksFix() {
|
||||||
|
return getBoolean("fix-infested-block-breaking", true);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int get1_13TabCompleteDelay() {
|
public int get1_13TabCompleteDelay() {
|
||||||
return getInt("1_13-tab-complete-delay", 0);
|
return getInt("1_13-tab-complete-delay", 0);
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren