Skip to content

Commit

Permalink
Correct meta error in 'on furnace smelts'
Browse files Browse the repository at this point in the history
Straightforward fix, the meta information was a bit off.
Also autofixed some spacing apparently.
  • Loading branch information
mcmonkey4eva committed Nov 6, 2013
1 parent a19d72c commit bd340cd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Expand Up @@ -142,13 +142,13 @@ public void boundPrepareItem(PrepareItemCraftEvent event) {

@EventHandler
public void boundDropItem(PlayerDropItemEvent event) {

// If the item has no ItemMeta or lore, ignore it.
if (!event.getItemDrop().getItemStack().hasItemMeta()
|| !event.getItemDrop().getItemStack().getItemMeta().hasLore()
|| event.getItemDrop().getItemStack().getItemMeta().getLore().isEmpty())
return;

for (String line : event.getItemDrop().getItemStack().getItemMeta().getLore()) {
// If the item being dropped is bound, don't drop it.
if (line.startsWith("§0id:")
Expand All @@ -158,7 +158,7 @@ public void boundDropItem(PlayerDropItemEvent event) {
break;
}
}

}

@EventHandler
Expand Down
Expand Up @@ -967,8 +967,8 @@ public void furnaceExtract(FurnaceExtractEvent event) {
// @Triggers when a furnace smelts an item.
// @Context
// <context.location> returns the dLocation of the furnace.
// <context.source> returns the dItem that is smelted.
// <context.result> returns the dItem that is the result of the smelting.
// <context.source_item> returns the dItem that is being smelted.
// <context.result_item> returns the dItem that is the result of the smelting.
//
// @Determine
// "CANCELLED" to stop the furnace from smelting the item.
Expand All @@ -987,7 +987,7 @@ public void furnaceSmelt(FurnaceSmeltEvent event) {
context.put("result_item", result);

String determination = doEvents(Arrays.asList
("furnace smelts item",
("furnace smelts item",
"furnace smelts " + source.identify(),
"furnace smelts item into " + result.identify(),
"furnace smelts " + source.identify() + " into " + result.identify()),
Expand Down

0 comments on commit bd340cd

Please sign in to comment.