Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

Commit

Permalink
changed how plastic bin changes the max limit
Browse files Browse the repository at this point in the history
  • Loading branch information
Trinsdar committed Jul 2, 2024
1 parent 4d2ae32 commit e9bbc37
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,8 @@ public int getMaxLimit() {
@Override
public InteractionResult onInteractServer(BlockState state, Level world, BlockPos pos, Player player, InteractionHand hand, BlockHitResult hit, @Nullable AntimatterToolType type) {
if (type == AntimatterDefaultTools.WIRE_CUTTER){
int addition = player.isCrouching() ? -64 : 64;
maxLimit += addition;
if (maxLimit == 0) {
maxLimit = player.isCrouching() ? maxLimit / 2 : maxLimit * 2;
if (maxLimit == 32) {
maxLimit = 1024;
}
if (maxLimit > 1024) {
Expand Down

0 comments on commit e9bbc37

Please sign in to comment.