mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
Replace Blocks.FARMLAND checks with instanceof FarmBlock (#10647)
Signed-off-by: Joseph T. McQuigg <[email protected]>
This commit is contained in:
1 parent
ef0e7bc17f
commit
f06727a205
7 files changed
+68
-2
No files matched your search
@@ -355,7 +355,7 @@ public interface IForgeBlock {
|
||||
* @return True if the soil should be considered fertile.
|
||||
*/
|
||||
default boolean isFertile(BlockState state, BlockGetter level, BlockPos pos) {
|
||||
if (state.is(Blocks.FARMLAND))
|
||||
if (state.getBlock() instanceof FarmBlock)
|
||||
return state.getValue(FarmBlock.MOISTURE) > 0;
|
||||
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user