Skip to content

Commit

Permalink
fix really weird special case of inventory-item-player parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
mcmonkey4eva committed Jan 5, 2020
1 parent 601c78d commit abb861e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Expand Up @@ -44,15 +44,15 @@ public class BreakCommand extends AbstractCommand implements Holdable {
//
// @Usage
// Use to make the npc break a related block.
// - break <context.location>
// - ~break <context.location>
//
// @Usage
// Use to make a different NPC break a related block.
// - break <context.location> <[some_npc]>
// - ~break <context.location> <[some_npc]>
//
// @Usage
// Use to make a different NPC break a related block and start digging from 5 blocks away.
// - break <context.location> <[some_npc]> radius:5
// - ~break <context.location> <[some_npc]> radius:5
// -->

@Override
Expand Down
Expand Up @@ -241,7 +241,7 @@ else if (ItemTag.matches(item)) {
ListTag list = ListTag.getListFor(queue.determinations.getObject(0));
if (list != null) {
int x = 0;
for (ItemTag item : list.filter(ItemTag.class, this, true)) {
for (ItemTag item : list.filter(ItemTag.class, context, true)) {
while (x < filledSlots.length && filledSlots[x]) {
x++;
}
Expand Down
Expand Up @@ -72,14 +72,14 @@ public void exceptionCaught(ChannelHandlerContext channelhandlercontext, Throwab
}

@Override
protected void channelRead0(ChannelHandlerContext channelhandlercontext, Packet packet) throws Exception { // TODO: Check mapping update. Previously overrode 'a', and channelRead0 was overriden separately.
protected void channelRead0(ChannelHandlerContext channelhandlercontext, Packet packet) throws Exception {
// TODO: Check mapping update. Previously overrode 'a', and channelRead0 was overriden separately.
if (oldManager.channel.isOpen()) {
try {
packet.a(this.packetListener);
}
catch (Exception e) {
// Do nothing
//dB.echoError(e);
}
}
}
Expand Down

0 comments on commit abb861e

Please sign in to comment.