btk5h / skript-mirror

Powerful reflection utilities for Skript
MIT License
34 stars 10 forks source link

No matching method event.setDropItems(bool) #150

Open ppowicz opened 4 years ago

ppowicz commented 4 years ago

Hello, so I got this error and I don't know if it's just me or not.

To reproduce

import:
    org.bukkit.event.block.BlockBreakEvent

on BlockBreakEvent:
    event.setDropItems(false)

Expected behavior Items spawn normally and I get an error: No matching method: BlockBreakEvent#setDropItems called with (false (Boolean)) when normally I should be able to call it with bool (see spigot docs).

Server information

Pikachu920 commented 4 years ago

This method didn't exist in 1.8