mirror of
https://github.com/FabricMC/fabric.git
synced 2024-11-29 19:16:01 -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.setDynamicBounds(otherAccessor.getDynamicBounds());
|
||||||
thisAccessor.setOpaque(otherAccessor.getOpaque());
|
thisAccessor.setOpaque(otherAccessor.getOpaque());
|
||||||
thisAccessor.setIsAir(otherAccessor.getIsAir());
|
thisAccessor.setIsAir(otherAccessor.getIsAir());
|
||||||
|
thisAccessor.setToolRequired(otherAccessor.isToolRequired());
|
||||||
|
|
||||||
// Now attempt to copy fabric specific data
|
// Now attempt to copy fabric specific data
|
||||||
BlockSettingsInternals otherInternals = (BlockSettingsInternals) settings;
|
BlockSettingsInternals otherInternals = (BlockSettingsInternals) settings;
|
||||||
|
|
|
@ -73,6 +73,9 @@ public interface AbstractBlockSettingsAccessor {
|
||||||
@Accessor
|
@Accessor
|
||||||
boolean getIsAir();
|
boolean getIsAir();
|
||||||
|
|
||||||
|
@Accessor
|
||||||
|
boolean isToolRequired();
|
||||||
|
|
||||||
/* SETTERS */
|
/* SETTERS */
|
||||||
@Accessor
|
@Accessor
|
||||||
void setMaterial(Material material);
|
void setMaterial(Material material);
|
||||||
|
@ -103,8 +106,11 @@ public interface AbstractBlockSettingsAccessor {
|
||||||
|
|
||||||
@Accessor
|
@Accessor
|
||||||
void setLootTableId(Identifier lootTableId);
|
void setLootTableId(Identifier lootTableId);
|
||||||
/* INVOKERS */
|
|
||||||
|
|
||||||
|
@Accessor
|
||||||
|
void setToolRequired(boolean toolRequired);
|
||||||
|
|
||||||
|
/* INVOKERS */
|
||||||
@Invoker
|
@Invoker
|
||||||
Block.Settings invokeSounds(BlockSoundGroup group);
|
Block.Settings invokeSounds(BlockSoundGroup group);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue