Use block instead of material in CompatibleMaterial

This commit is contained in:
Fabrizio La Rosa 2020-06-16 05:07:30 +02:00
parent fa5f34a889
commit 781b716783

View File

@ -73,9 +73,9 @@ public class Block implements Listener {
}
if (stackableManager != null && stackableManager.isStacked(blockLocation)) {
Stackable stackable = stackableManager.getStack(block.getLocation(), CompatibleMaterial.getBlockMaterial(block.getType()));
Stackable stackable = stackableManager.getStack(block.getLocation(), CompatibleMaterial.getMaterial(block));
if (stackable != null) {
CompatibleMaterial material = CompatibleMaterial.getBlockMaterial(block.getType());
CompatibleMaterial material = CompatibleMaterial.getMaterial(block);
byte data = block.getData();
int droppedAmount = 0;