mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-19 22:19:40 +00:00
Magic Book Item + Magic Player Packets
This commit is contained in:
1 parent
62046b10e6
commit
3e10207b41
19 files changed
+466
-18
No files matched your search
@@ -706,15 +706,15 @@ public class NoppesUtilServer {
|
||||
public static void sendMagicInfo(EntityPlayerMP player, boolean cycles) {
|
||||
HashMap<String, Integer> map = new HashMap<String, Integer>();
|
||||
if (cycles) {
|
||||
for (Magic magic : MagicController.getInstance().magics.values()) {
|
||||
map.put(magic.name, magic.id);
|
||||
}
|
||||
sendScrollData(player, map, EnumScrollData.MAGIC);
|
||||
} else {
|
||||
for (MagicCycle magicCycle : MagicController.getInstance().cycles.values()) {
|
||||
map.put(magicCycle.name, magicCycle.id);
|
||||
}
|
||||
sendScrollData(player, map, EnumScrollData.MAGIC_CYCLES);
|
||||
} else {
|
||||
for (Magic magic : MagicController.getInstance().magics.values()) {
|
||||
map.put(magic.name, magic.id);
|
||||
}
|
||||
sendScrollData(player, map, EnumScrollData.MAGIC);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user