mirror of
https://github.com/VolmitSoftware/Iris.git
synced 2026-04-23 08:29:30 +00:00
@@ -43,11 +43,11 @@ public class VillageSVC implements IrisService {
|
|||||||
*/
|
*/
|
||||||
@EventHandler
|
@EventHandler
|
||||||
public void on(VillagerAcquireTradeEvent event) {
|
public void on(VillagerAcquireTradeEvent event) {
|
||||||
if(!IrisToolbelt.isIrisWorld(event.getEntity().getWorld())) {
|
if(!IrisToolbelt.isIrisWorld((event.getEntity().getWorld()))) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
Iris.info("Trade event: type " + event.getRecipe().getResult().getType() + " / meta " + event.getRecipe().getResult().getItemMeta() + " / data " + event.getRecipe().getResult().getData());
|
// Iris.info("Trade event: type " + event.getRecipe().getResult().getType() + " / meta " + event.getRecipe().getResult().getItemMeta() + " / data " + event.getRecipe().getResult().getData());
|
||||||
if(!event.getRecipe().getResult().getType().equals(Material.FILLED_MAP)) {
|
if(!event.getRecipe().getResult().getType().equals(Material.FILLED_MAP)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user