Planting crops replaces non-full blocks
WojMel opened this issue ยท 1 comments
Quick description
Placing a seed on a sand or a farmland replaces block above.
Related issues and searches
No related issues.
Mods and versions used
- Minecraft: 1.18.2
- Forge: 40.2.0
- AgriCraft: 1.18.2-3.1.4
- InfinityLib: 1.18.2-2.1.4
Steps to replicate the issue
- Place a sand block (also works with farmland, but some of the blocks from the 2nd step convert farmland into dirt block).
- Place a non-full block on the sand (e.g. chest, dragon head, hopper, fence, slab, sapling).
- Place a seed on top of the sand block or on an adjacent block's side facing the non-full block (e.g. wheat seed, sugar cane).
- The block placed in the 2nd step is replaced with an ArgiCraft's crop.
Expectations and explanations
I'd expect to fail in the 3rd step. Crops shouldn't replace other blocks.
Your environment
- What kind of server:
- Singleplayer
- Multiplayer
- Game Modes:
- Survival
- Creative
- JRE: OpenJDK 17.0.6
Looks like VanillaSeedConversionHandler.runPlantingConversion never checks if the position is empty, but It's just a guess from looking at the code.