mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-22 15:47:57 -05:00
Fix FabricBlockSettings not copying the toolRequired boolean (#984)
This commit is contained in:
parent
f8ee145623
commit
23a4a963ba
2 changed files with 8 additions and 1 deletions
|
@ -66,6 +66,7 @@ public class FabricBlockSettings extends AbstractBlock.Settings {
|
|||
thisAccessor.setDynamicBounds(otherAccessor.getDynamicBounds());
|
||||
thisAccessor.setOpaque(otherAccessor.getOpaque());
|
||||
thisAccessor.setIsAir(otherAccessor.getIsAir());
|
||||
thisAccessor.setToolRequired(otherAccessor.isToolRequired());
|
||||
|
||||
// Now attempt to copy fabric specific data
|
||||
BlockSettingsInternals otherInternals = (BlockSettingsInternals) settings;
|
||||
|
|
|
@ -73,6 +73,9 @@ public interface AbstractBlockSettingsAccessor {
|
|||
@Accessor
|
||||
boolean getIsAir();
|
||||
|
||||
@Accessor
|
||||
boolean isToolRequired();
|
||||
|
||||
/* SETTERS */
|
||||
@Accessor
|
||||
void setMaterial(Material material);
|
||||
|
@ -103,8 +106,11 @@ public interface AbstractBlockSettingsAccessor {
|
|||
|
||||
@Accessor
|
||||
void setLootTableId(Identifier lootTableId);
|
||||
/* INVOKERS */
|
||||
|
||||
@Accessor
|
||||
void setToolRequired(boolean toolRequired);
|
||||
|
||||
/* INVOKERS */
|
||||
@Invoker
|
||||
Block.Settings invokeSounds(BlockSoundGroup group);
|
||||
|
||||
|
|
Loading…
Reference in a new issue