3
0
Mirror von https://github.com/ViaVersion/ViaVersion.git synchronisiert 2024-12-27 08:30:09 +01:00
Dieser Commit ist enthalten in:
Hugo Kerstens 2016-03-22 17:00:13 +01:00
Ursprung 523c27237d
Commit a7022bddf8
3 geänderte Dateien mit 8 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -325,7 +325,7 @@ public class ViaVersionPlugin extends JavaPlugin implements ViaVersionAPI, ViaVe
return getConfig().getBoolean("bossbar-anti-flicker", false); return getConfig().getBoolean("bossbar-anti-flicker", false);
} }
public boolean isUnkownEntitiesSuppressed() { public boolean isUnknownEntitiesSuppressed() {
return getConfig().getBoolean("suppress-entityid-errors", false); return getConfig().getBoolean("suppress-entityid-errors", false);
} }

Datei anzeigen

@ -12,6 +12,11 @@ public interface ViaVersionConfig {
*/ */
boolean isDebug(); boolean isDebug();
/**
* Obtain if collision preventing for players is enabled
*
* @return true if collision preventing is enabled
*/
boolean isPreventCollision(); boolean isPreventCollision();
boolean isNewEffectIndicator(); boolean isNewEffectIndicator();
@ -26,7 +31,7 @@ public interface ViaVersionConfig {
boolean isBossbarAntiflicker(); boolean isBossbarAntiflicker();
boolean isUnkownEntitiesSuppressed(); boolean isUnknownEntitiesSuppressed();
double getHologramYOffset(); double getHologramYOffset();

Datei anzeigen

@ -183,7 +183,7 @@ public class EntityPackets {
EntityTracker tracker = wrapper.user().get(EntityTracker.class); EntityTracker tracker = wrapper.user().get(EntityTracker.class);
if (tracker.getClientEntityTypes().containsKey(entityID)) { if (tracker.getClientEntityTypes().containsKey(entityID)) {
MetadataRewriter.transform(tracker.getClientEntityTypes().get(entityID), metadataList); MetadataRewriter.transform(tracker.getClientEntityTypes().get(entityID), metadataList);
} else if(!ViaVersion.getConfig().isUnkownEntitiesSuppressed()){ } else if(!ViaVersion.getConfig().isUnknownEntitiesSuppressed()){
System.out.println("Unable to find entity for metadata, entity ID: " + entityID); System.out.println("Unable to find entity for metadata, entity ID: " + entityID);
} }
} }