Skip to content

Commit

Permalink
Merge pull request #4 from MadMan310/master
Browse files Browse the repository at this point in the history
Increase the regen of the Forcefield item's regeneration
  • Loading branch information
Dream-Master authored Oct 29, 2022
2 parents 1d7f8dd + f0d27c3 commit b88aa38
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/net/malisis/doors/door/item/ForcefieldItem.java
Original file line number Diff line number Diff line change
Expand Up @@ -243,8 +243,8 @@ public void onUpdate(ItemStack itemStack, World world, Entity entity, int p_7766

if (getEnergy(itemStack) >= getMaxEnergy()) return;

int energy = getEnergy(itemStack) + 1;
if (((EntityPlayer) entity).capabilities.isCreativeMode) energy += 19;
int energy = getEnergy(itemStack) + 20;
if (((EntityPlayer) entity).capabilities.isCreativeMode) energy += 20;
setEnergy(itemStack, energy);
}

Expand Down

0 comments on commit b88aa38

Please sign in to comment.