Reenable attribute packets, fix modded entities

This commit is contained in:
libraryaddict
2020-06-30 16:18:03 +12:00
parent f3d5f7efc3
commit e3300e7ef9
3 changed files with 18 additions and 13 deletions

View File

@@ -50,8 +50,7 @@ public class PacketHandlerAttributes implements IPacketHandler {
return;
}
// Skip if its 1.16, PL can't handle it atm
if (disguise.isMiscDisguise() || NmsVersion.v1_16.isSupported()) {
if (disguise.isMiscDisguise()) {
return;
}

View File

@@ -75,7 +75,7 @@ public class PacketHandlerSpawn implements IPacketHandler {
Disguise disguise = packets.getDisguise();
if (DisguiseConfig.isMiscDisguisesForLivingEnabled()) {
if (disguise.getWatcher() instanceof LivingWatcher && !NmsVersion.v1_16.isSupported()) {
if (disguise.getWatcher() instanceof LivingWatcher) {
ArrayList<WrappedAttribute> attributes = new ArrayList<>();
WrappedAttribute.Builder builder = WrappedAttribute.newBuilder().attributeKey("generic.maxHealth");