Slab drop fix
This commit is contained in:
parent
99f958da37
commit
41141ec251
1 changed files with 2 additions and 1 deletions
|
@ -36,7 +36,8 @@ public class BaseSlabBlock extends SlabBlock implements BlockModelProvider {
|
||||||
@Override
|
@Override
|
||||||
@SuppressWarnings("deprecation")
|
@SuppressWarnings("deprecation")
|
||||||
public List<ItemStack> getDrops(BlockState state, LootContext.Builder builder) {
|
public List<ItemStack> getDrops(BlockState state, LootContext.Builder builder) {
|
||||||
return Collections.singletonList(new ItemStack(this));
|
int count = state.getValue(TYPE) == SlabType.DOUBLE ? 2 : 1;
|
||||||
|
return Collections.singletonList(new ItemStack(this, count));
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue