Skip to content

Commit

Permalink
fix: #8
Browse files Browse the repository at this point in the history
  • Loading branch information
RuochenFu21 committed Feb 9, 2024
1 parent fbfbf88 commit 111bce4
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,8 @@ public void afterReload(){
@Override
public float propagateRotationTo(KineticBlockEntity target, BlockState stateFrom, BlockState stateTo, BlockPos diff, boolean connectedViaAxes, boolean connectedViaCogs) {
return (target.getPersistentData().getInt("channel") == getChannel()
&& target.getPersistentData().getString("password").equals(getPassword())) ? 1f : 0f;
&& target.getPersistentData().getString("password").equals(getPassword())
&& target.getBlockState().getBlock() instanceof EnergyTransmitterBlock) ? 1f : 0f;
}

}

0 comments on commit 111bce4

Please sign in to comment.