Skip to content

Commit

Permalink
chores: mark some attributes as useless
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Jun 12, 2024
1 parent 7b61af2 commit 7076fae
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -125,13 +125,13 @@ public static BlockAttributes fromNBT(NbtMap nbt) {
.friction(nbt.getFloat("friction"))
.hardness(nbt.getFloat("hardness"))
.isMotionBlockingBlock(nbt.getBoolean("isMotionBlockingBlock"))
.isPowerSource(nbt.getBoolean("isPowerSource"))
.isPowerSource(nbt.getBoolean("isPowerSource"))// USELESS
.isUnbreakable(nbt.getBoolean("isUnbreakable"))
.isWaterBlocking(nbt.getBoolean("isWaterBlocking"))
.lightEmission(nbt.getInt("lightEmission"))
.lightDampening(nbt.getInt("lightDampening"))
.isLavaFlammable(nbt.getBoolean("isLavaFlammable"))
.pushesUpFallingBlocks(nbt.getBoolean("pushesUpFallingBlocks"))
.pushesUpFallingBlocks(nbt.getBoolean("pushesUpFallingBlocks"))// USELESS
.thickness(nbt.getFloat("thickness"))
.build();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,19 +65,19 @@ public static ItemAttributes fromNBT(NbtMap nbt) {
.attackDamage(nbt.getInt("attackDamage"))
.canBeCharged(nbt.getBoolean("canBeCharged"))
.canBeDepleted(nbt.getBoolean("canBeDepleted"))
.canDestroyInCreative(nbt.getBoolean("canDestroyInCreative"))
.canDestroyInCreative(nbt.getBoolean("canDestroyInCreative"))// USELESS
.canUseOnSimTick(nbt.getBoolean("canUseOnSimTick"))
.cooldownTime(nbt.getInt("cooldownTime"))
.cooldownType(nbt.getString("cooldownType"))
.creativeCategory(nbt.getInt("creativeCategory"))
.creativeGroup(nbt.getString("creativeGroup"))
.cooldownTime(nbt.getInt("cooldownTime"))// USELESS
.cooldownType(nbt.getString("cooldownType"))// USELESS
.creativeCategory(nbt.getInt("creativeCategory"))// USELESS
.creativeGroup(nbt.getString("creativeGroup"))// USELESS
.isDamageable(nbt.getBoolean("isDamageable"))
.itemColorName(nbt.getString("itemColorName"))
.itemColorRGB(nbt.getInt("itemColorRGB"))
.itemColorName(nbt.getString("itemColorName"))// USELESS
.itemColorRGB(nbt.getInt("itemColorRGB"))// USELESS
.maxDamage(nbt.getInt("maxDamage"))
.maxStackSize(nbt.getInt("maxStackSize"))
.toughnessValue(nbt.getInt("toughnessValue"))
.viewDamping(nbt.getFloat("viewDamping"))
.viewDamping(nbt.getFloat("viewDamping"))// USELESS
.build();
}
}

0 comments on commit 7076fae

Please sign in to comment.