3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-10-03 08:41:05 +02:00
Dieser Commit ist enthalten in:
KennyTV 2019-10-02 09:37:18 +02:00
Ursprung bbeabd20b8
Commit 7ba2630dd2
4 geänderte Dateien mit 6 neuen und 13 gelöschten Zeilen

Datei anzeigen

@ -243,6 +243,11 @@ public abstract class AbstractViaConfig extends Config implements ViaVersionConf
return getBoolean("fix-non-full-blocklight", false);
}
@Override
public boolean is1_14HealthNaNFix() {
return getBoolean("fix-1_14-health-nan", true);
}
@Override
public boolean is1_15InstantRespawn() {
return getBoolean("use-1_15-instant-respawn", false);

Datei anzeigen

@ -141,7 +141,7 @@ public class EntityPackets {
@Override
public Integer transform(PacketWrapper wrapper, Short slot) throws Exception {
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
// ... 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)

Datei anzeigen

@ -130,8 +130,6 @@ change-1_14-hitbox: false
fix-non-full-blocklight: true
# Fixes walk animation not shown when health is set to Float.NaN
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?
use-1_15-instant-respawn: false
#

Datei anzeigen

@ -59,14 +59,4 @@ public class SpongeViaConfig extends AbstractViaConfig {
public boolean is1_14HitboxFix() {
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);
}
}