Fix fishing in 1.13 (#3528)

* Fix fishing to use Material instead of BlockData (that was AIR)
This commit is contained in:
R4zorax
2018-08-03 02:27:15 +02:00
committed by t00thpick1
parent 7800e48f61
commit a39a77f89e
3 changed files with 31 additions and 8 deletions

View File

@ -279,7 +279,7 @@ public class FishingManager extends SkillManager {
*/
public void handleFishing(Item fishingCatch) {
this.fishingCatch = fishingCatch;
int fishXp = ExperienceConfig.getInstance().getXp(SkillType.FISHING, fishingCatch.getItemStack().getType().createBlockData());
int fishXp = ExperienceConfig.getInstance().getXp(SkillType.FISHING, fishingCatch.getItemStack().getType());
int treasureXp = 0;
Player player = getPlayer();
FishingTreasure treasure = null;