Mirror von
https://github.com/ViaVersion/ViaVersion.git
synchronisiert 2024-11-20 06:50:08 +01:00
Finish merge
Dieser Commit ist enthalten in:
Ursprung
bbeabd20b8
Commit
7ba2630dd2
@ -243,6 +243,11 @@ public abstract class AbstractViaConfig extends Config implements ViaVersionConf
|
|||||||
return getBoolean("fix-non-full-blocklight", false);
|
return getBoolean("fix-non-full-blocklight", false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean is1_14HealthNaNFix() {
|
||||||
|
return getBoolean("fix-1_14-health-nan", true);
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean is1_15InstantRespawn() {
|
public boolean is1_15InstantRespawn() {
|
||||||
return getBoolean("use-1_15-instant-respawn", false);
|
return getBoolean("use-1_15-instant-respawn", false);
|
||||||
|
@ -141,7 +141,7 @@ public class EntityPackets {
|
|||||||
@Override
|
@Override
|
||||||
public Integer transform(PacketWrapper wrapper, Short slot) throws Exception {
|
public Integer transform(PacketWrapper wrapper, Short slot) throws Exception {
|
||||||
int entityId = wrapper.get(Type.VAR_INT, 0);
|
int entityId = wrapper.get(Type.VAR_INT, 0);
|
||||||
int receiverId = wrapper.user().get(EntityTracker.class).getEntityID();
|
int receiverId = wrapper.user().get(EntityTracker1_9.class).getClientEntityId();
|
||||||
// Normally, 0 = hand and 1-4 = armor
|
// Normally, 0 = hand and 1-4 = armor
|
||||||
// ... but if the sent id is equal to the receiver's id, 0-3 will instead mark the armor slots
|
// ... but if the sent id is equal to the receiver's id, 0-3 will instead mark the armor slots
|
||||||
// (In 1.9+, every client treats the received the same: 0=hand, 1=offhand, 2-5=armor)
|
// (In 1.9+, every client treats the received the same: 0=hand, 1=offhand, 2-5=armor)
|
||||||
|
@ -130,8 +130,6 @@ change-1_14-hitbox: false
|
|||||||
fix-non-full-blocklight: true
|
fix-non-full-blocklight: true
|
||||||
# Fixes walk animation not shown when health is set to Float.NaN
|
# Fixes walk animation not shown when health is set to Float.NaN
|
||||||
fix-1_14-health-nan: true
|
fix-1_14-health-nan: true
|
||||||
# Fixes 1.14+ clients on sub 1.14 servers having a light value of 0 for non full blocks.
|
|
||||||
fix-non-full-blocklight: true
|
|
||||||
# Should 1.15+ clients respawn instantly / without showing a death screen?
|
# Should 1.15+ clients respawn instantly / without showing a death screen?
|
||||||
use-1_15-instant-respawn: false
|
use-1_15-instant-respawn: false
|
||||||
#
|
#
|
||||||
|
@ -59,14 +59,4 @@ public class SpongeViaConfig extends AbstractViaConfig {
|
|||||||
public boolean is1_14HitboxFix() {
|
public boolean is1_14HitboxFix() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean isNonFullBlockLightFix() {
|
|
||||||
return getBoolean("fix-non-full-blocklight", true);
|
|
||||||
}
|
|
||||||
|
|
||||||
@Override
|
|
||||||
public boolean is1_14HealthNaNFix() {
|
|
||||||
return getBoolean("fix-1_14-health-nan", true);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren