SteamWar/SpigotCore
Archiviert
13
0

Fix REntity Metadata
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2023-03-03 17:43:48 +01:00
Ursprung 413abd5f66
Commit f1e1b37b59

Datei anzeigen

@ -37,7 +37,7 @@ public class ChatWrapper19 implements ChatWrapper {
public Object getDataWatcherPacket(int entityId, Object... dataWatcherKeyValues) { public Object getDataWatcherPacket(int entityId, Object... dataWatcherKeyValues) {
ArrayList<DataWatcher.b<?>> nativeWatchers = new ArrayList<>(1); ArrayList<DataWatcher.b<?>> nativeWatchers = new ArrayList<>(1);
for(int i = 0; i < dataWatcherKeyValues.length; i+=2) { for(int i = 0; i < dataWatcherKeyValues.length; i+=2) {
nativeWatchers.add((DataWatcher.b<?>) BountifulWrapper.impl.getDataWatcherItem(dataWatcherKeyValues[i], dataWatcherKeyValues[i+1])); nativeWatchers.add(((DataWatcher.Item<?>) BountifulWrapper.impl.getDataWatcherItem(dataWatcherKeyValues[i], dataWatcherKeyValues[i+1])).e());
} }
return new PacketPlayOutEntityMetadata(entityId, nativeWatchers); return new PacketPlayOutEntityMetadata(entityId, nativeWatchers);