Solved bug with block.breakNaturally()

Discussion in 'Plugin Development' started by Kilorbine, Mar 23, 2016.

Thread Status:
Not open for further replies.
  1. Offline

    Kilorbine

    Hi

    I would like to report a bug. (or maybe it's me that do not use the good function?)

    So, I have made a plugin : http://dev.bukkit.org/bukkit-plugins/auto-crop-replant/#comments

    Basicly, if the crop is ripe, i break it (so it drop) and i replant.
    But I've seen that with potatoes and carrot, it does not work.

    So I've made a little check with block.getDrops() and this is what I got :

    For Wheat I've got Wheat * 1 (normal drop)
    But i've got nothing for carrot and potatoes.

    So is this a bug?
    Or should I use another method?

    Cordially,
     
  2. Offline

    Zombie_Striker

    @Kilorbine
    Although this would be considered a bug, unless you're purely using bukkit/ using a version below 1.8, this is a problem with spigot. Also, since bukkit no longer is being developed, the only way you can fix this bug is if you make a plugin that fixes this issue, or if spigot fixes this problem.

    Are you using spigot? If so, you should create a bug report for spigot that way they can fix this problem.
     
  3. Offline

    Kilorbine

    @Zombie_Striker
    Using only Bukkit 1.9

    After more investigation, it's not really a bug.
    Just that carrot and Potatoes aren't instance of Crops instead of Wheat.
    Thx for the answer :)

    Mark as resolved pls.
     
  4. Offline

    Zombie_Striker

    @Kilorbine
    Go to the top of this page, click ThreadTools, click Edit title, click on the prefix and add "Solved"
     
Thread Status:
Not open for further replies.

Share This Page