Skip to content

Commit

Permalink
Remove hash from resource pack event
Browse files Browse the repository at this point in the history
  • Loading branch information
Morphan1 committed Jun 12, 2016
1 parent 0d59224 commit 1b2f418
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -61,13 +61,12 @@ public void a(PacketPlayInSetCreativeSlot packet) {
@Override
public void a(PacketPlayInResourcePackStatus packet) {
try {
final String hash = (String) resource_pack_hash.get(packet);
final EnumResourcePackStatus status = (EnumResourcePackStatus) resource_pack_status.get(packet);
Bukkit.getScheduler().runTask(DenizenAPI.getCurrentInstance(), new Runnable() {
@Override
public void run() {
ResourcePackStatusScriptEvent event = ResourcePackStatusScriptEvent.instance;
event.hash = new Element(hash);
// TODO: get hash on server?... last sent hash? event.hash = new Element(hash);
event.status = new Element(status.name());
event.player = dPlayer.mirrorBukkitPlayer(player.getBukkitEntity());
event.fire();
Expand Down

0 comments on commit 1b2f418

Please sign in to comment.