@@ -296,12 +296,12 @@ private List<EnchantmentData> buildEnchantmentList(int seed, Observation observa
296
296
// from, but it happens *after* the addition, meaning it does absolutely nothing.
297
297
rand .setSeed (seed + id );
298
298
ItemStack item = observation .item ;
299
- if (item .getItem () == Items .enchanted_book ) {
300
- item = new ItemStack (Items .book );
299
+ if (item .getItem () == Items .ENCHANTED_BOOK ) {
300
+ item = new ItemStack (Items .BOOK );
301
301
}
302
302
List <EnchantmentData > list = EnchantmentHelper .buildEnchantmentList (rand , item ,
303
303
observation .levels [id ], false );
304
- if (item .getItem () == Items .book && list .size () > 1 ) {
304
+ if (item .getItem () == Items .BOOK && list .size () > 1 ) {
305
305
list .remove (rand .nextInt (list .size ()));
306
306
}
307
307
return list ;
@@ -419,13 +419,13 @@ private synchronized void dumpError(String tag) {
419
419
GuiNewChat chat = Minecraft .getMinecraft ().ingameGUI .getChatGUI ();
420
420
chat .printChatMessage (new TextComponentTranslation ("enchantmentrevealer.error.part1" ,
421
421
new TextComponentTranslation ("enchantmentrevealer.error." + tag ), "d0sboots" ,
422
- "gmai" , "l.com" ).setChatStyle (new Style ().setColor (TextFormatting .RED )
422
+ "gmai" , "l.com" ).setStyle (new Style ().setColor (TextFormatting .RED )
423
423
.setBold (true )));
424
424
chat .printChatMessage (new TextComponentTranslation ("enchantmentrevealer.error.part2" )
425
- .setChatStyle (new Style ().setColor (TextFormatting .YELLOW )));
425
+ .setStyle (new Style ().setColor (TextFormatting .YELLOW )));
426
426
for (Observation observation : observations ) {
427
427
chat .printChatMessage (new TextComponentString (observation .toString ())
428
- .setChatStyle (new Style ().setColor (TextFormatting .YELLOW )));
428
+ .setStyle (new Style ().setColor (TextFormatting .YELLOW )));
429
429
}
430
430
observations .clear ();
431
431
candidatesLength = 0 ;
0 commit comments