mirror of
				https://github.com/SquidDev-CC/CC-Tweaked
				synced 2025-10-31 05:33:00 +00:00 
			
		
		
		
	Fixed block settings.
This commit is contained in:
		| @@ -51,7 +51,9 @@ import dan200.computercraft.shared.turtle.inventory.ContainerTurtle; | |||||||
| import dan200.computercraft.shared.turtle.items.ItemTurtle; | import dan200.computercraft.shared.turtle.items.ItemTurtle; | ||||||
| import dan200.computercraft.shared.util.FixedPointTileEntityType; | import dan200.computercraft.shared.util.FixedPointTileEntityType; | ||||||
|  |  | ||||||
|  | import net.fabricmc.fabric.api.object.builder.v1.block.FabricBlockSettings; | ||||||
| import net.minecraft.block.Block; | import net.minecraft.block.Block; | ||||||
|  | import net.minecraft.block.Blocks; | ||||||
| import net.minecraft.block.Material; | import net.minecraft.block.Material; | ||||||
| import net.minecraft.block.entity.BlockEntity; | import net.minecraft.block.entity.BlockEntity; | ||||||
| import net.minecraft.block.entity.BlockEntityType; | import net.minecraft.block.entity.BlockEntityType; | ||||||
| @@ -82,17 +84,17 @@ public final class ComputerCraftRegistry { | |||||||
|  |  | ||||||
|     public static final class ModBlocks { |     public static final class ModBlocks { | ||||||
|         private static Block.Settings properties() { |         private static Block.Settings properties() { | ||||||
|             return Block.Settings.of(Material.STONE) |             return FabricBlockSettings.copyOf(Blocks.STONE) | ||||||
|                                  .strength(2); |                                  .strength(2); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         private static Block.Settings turtleProperties() { |         private static Block.Settings turtleProperties() { | ||||||
|             return Block.Settings.of(Material.STONE) |             return FabricBlockSettings.copyOf(Blocks.STONE) | ||||||
|                 .strength(2.5f); |                 .strength(2.5f); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|         private static Block.Settings emProperties() { |         private static Block.Settings emProperties() { | ||||||
|             return Block.Settings.of(Material.STONE) |             return FabricBlockSettings.copyOf(Blocks.STONE) | ||||||
|                 .strength(1.5f); |                 .strength(1.5f); | ||||||
|         } |         } | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Jacob Farley
					Jacob Farley