Fix build

This commit is contained in:
Sollace 2024-03-31 22:47:15 +01:00
parent 7d63797d4d
commit 77d1d62494
No known key found for this signature in database
GPG key ID: E52FACE7B5C773DB
3 changed files with 2 additions and 49 deletions

View file

@ -41,7 +41,7 @@ public class PineappleCropBlock extends CropBlock {
}
@Override
protected boolean canPlantOnTop(BlockState floor, BlockView world, BlockPos pos) {
public boolean canPlantOnTop(BlockState floor, BlockView world, BlockPos pos) {
return floor.isOf(this) || super.canPlantOnTop(floor, world, pos);
}

View file

@ -97,7 +97,7 @@ public class SegmentedCropBlock extends CropBlock implements SegmentedBlock {
}
@Override
protected boolean canPlantOnTop(BlockState state, BlockView view, BlockPos pos) {
public boolean canPlantOnTop(BlockState state, BlockView view, BlockPos pos) {
return (state.getBlock() instanceof SegmentedCropBlock o && o.canSupportBlock(this, state, view, pos)) || super.canPlantOnTop(state, view, pos);
}

View file

@ -1,47 +0,0 @@
{
"type": "minecraft:block",
"functions": [
{
"function": "minecraft:explosion_decay"
}
],
"pools": [
{
"bonus_rolls": 0.0,
"conditions": [
{
"condition": "minecraft:all_of",
"terms": [
{
"block": "unicopia:apple_pie",
"condition": "minecraft:block_state_property",
"properties": {
"stomped": true
}
},
{
"condition": "minecraft:match_tool",
"predicate": {
"enchantments": [
{
"enchantment": "minecraft:silk_touch",
"levels": {
"min": 1
}
}
]
}
}
]
}
],
"entries": [
{
"type": "minecraft:item",
"name": "unicopia:apple_pie_hoof"
}
],
"rolls": 1.0
}
]
}