[1.20.5] Needs to use proper 1.8 type here
Signed-off-by: Irmo van den Berge <irmo.vandenberge@ziggo.nl>
This commit is contained in:
1 parent
3891f38763
commit
3dabe5853d
1 file changed
+6
-4
+6
-4
@@ -233,16 +233,18 @@ interface IBlockData {
|
||||
public (SoundEffectTypeHandle) SoundEffectType getSoundType:getStepSound()
|
||||
#elseif version >= 1.14
|
||||
public (SoundEffectTypeHandle) SoundEffectType getSoundType:r()
|
||||
#else
|
||||
#elseif version >= 1.9
|
||||
public (SoundEffectTypeHandle) SoundEffectType getSoundType() {
|
||||
#if version >= 1.11
|
||||
return instance.getBlock().getStepSound();
|
||||
#elseif version >= 1.9
|
||||
return instance.getBlock().w();
|
||||
#else
|
||||
return instance.getBlock().stepSound;
|
||||
return instance.getBlock().w();
|
||||
#endif
|
||||
}
|
||||
#else
|
||||
public (SoundEffectTypeHandle) net.minecraft.world.level.block.Block.StepSound getSoundType() {
|
||||
return instance.getBlock().stepSound;
|
||||
}
|
||||
#endif
|
||||
|
||||
public boolean isSolid() {
|
||||
|
||||
Reference in new issue
Block a user