SteamWar/SpigotCore
Archiviert
13
0

Add debug output
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2023-02-08 21:44:11 +01:00
Ursprung ca4c31a353
Commit 4efd305bf9

Datei anzeigen

@ -49,6 +49,7 @@ public class TechHider {
private static final Reflection.MethodInvoker getBlockByBlockData = Reflection.getTypedMethod(iBlockData, null, block); private static final Reflection.MethodInvoker getBlockByBlockData = Reflection.getTypedMethod(iBlockData, null, block);
private static final Reflection.MethodInvoker getMaterialByBlock = Reflection.getTypedMethod(craftMagicNumbers, "getMaterial", Material.class, block); private static final Reflection.MethodInvoker getMaterialByBlock = Reflection.getTypedMethod(craftMagicNumbers, "getMaterial", Material.class, block);
public static boolean iBlockDataHidden(Set<Material> obfuscate, Object iBlockData) { public static boolean iBlockDataHidden(Set<Material> obfuscate, Object iBlockData) {
System.out.println(iBlockData.getClass() + " " + getBlockByBlockData.invoke(iBlockData).getClass());
return obfuscate.contains((Material) getMaterialByBlock.invoke(null, getBlockByBlockData.invoke(iBlockData))); return obfuscate.contains((Material) getMaterialByBlock.invoke(null, getBlockByBlockData.invoke(iBlockData)));
} }