wasliebob

#HashMapLogic

Sep 29th, 2014
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.70 KB | None | 0 0
  1. /** VARS */
  2. CompactItem item1 = new CompactItem(p1.getStackInSlot(0).getItem(), p2.getStackInSlot(0).getItem());
  3. CompactItem item2 = new CompactItem(p2.getStackInSlot(0).getItem(), p1.getStackInSlot(0).getItem());
  4.  
  5. /** WORKS */
  6. for(CompactItem items : RevivingRegistry.recipes.keySet()){
  7. System.out.println(items.item1.getUnlocalizedName() + " = " + items.item2.getUnlocalizedName() + " INPUT ");
  8. if(items.item1 == item1.item1 && items.item2 == item1.item2)
  9. System.out.println("It's equal but why doesn't it work 0.o");
  10. }
  11.  
  12. /** DOESN'T WORK */
  13. if(RevivingRegistry.recipes.containsKey(item1) || RevivingRegistry.recipes.containsKey(item2)){
  14. System.out.println("Hey");
  15. //TODO CHECK FOR BUG
  16. }
Advertisement
Add Comment
Please, Sign In to add comment