Fixing NBTTagList
Signed-off-by: Lixfel <agga-games@gmx.de>
Dieser Commit ist enthalten in:
Ursprung
ebefab135a
Commit
0de2dd0d41
@ -6,7 +6,6 @@ import com.comphenix.protocol.events.PacketAdapter;
|
|||||||
import com.comphenix.protocol.events.PacketContainer;
|
import com.comphenix.protocol.events.PacketContainer;
|
||||||
import com.comphenix.protocol.events.PacketEvent;
|
import com.comphenix.protocol.events.PacketEvent;
|
||||||
import com.comphenix.protocol.reflect.StructureModifier;
|
import com.comphenix.protocol.reflect.StructureModifier;
|
||||||
import com.comphenix.protocol.wrappers.nbt.NbtBase;
|
|
||||||
import com.comphenix.protocol.wrappers.nbt.NbtCompound;
|
import com.comphenix.protocol.wrappers.nbt.NbtCompound;
|
||||||
import com.comphenix.protocol.wrappers.nbt.NbtFactory;
|
import com.comphenix.protocol.wrappers.nbt.NbtFactory;
|
||||||
import de.steamwar.fightsystem.Config;
|
import de.steamwar.fightsystem.Config;
|
||||||
@ -56,8 +55,8 @@ public class TechHider_14 {
|
|||||||
cached = packet.deepClone();
|
cached = packet.deepClone();
|
||||||
ITechHider.packetCache.put(packet, cached);
|
ITechHider.packetCache.put(packet, cached);
|
||||||
e.setPacket(cached);
|
e.setPacket(cached);
|
||||||
StructureModifier<List<NbtBase<?>>> list = cached.getListNbtModifier();
|
StructureModifier<List> list = cached.getSpecificModifier(List.class);
|
||||||
List<NbtBase<?>> nmsTags = list.read(0);
|
List nmsTags = list.read(0);
|
||||||
boolean changed = false;
|
boolean changed = false;
|
||||||
for(int i = nmsTags.size() - 1; i >= 0; i--){
|
for(int i = nmsTags.size() - 1; i >= 0; i--){
|
||||||
NbtCompound nbt = NbtFactory.fromNMSCompound(nmsTags.get(i));
|
NbtCompound nbt = NbtFactory.fromNMSCompound(nmsTags.get(i));
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren