Skip to content

Commit

Permalink
forgor
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanuelG-Gaming committed Jun 3, 2022
1 parent a10782c commit 0a99736
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/erekir/type/ammo/OreAmmoType.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public void resupply(Unit unit) {
Geometry.circle(unitOn.x, unitOn.y, (int) offsetRange, (x, y) -> {
Tile build = world.tile(x, y);
if (build != null && build.overlay() == extractOre) {
Fx.itemTransfer.at(build.x, build.y, 4, ((OreBlock) extractOre).itemDrop.color, unit);
Fx.itemTransfer.at(build.x * tilesize, build.y * tilesize, 4, ((OreBlock) extractOre).itemDrop.color, unit);
unit.ammo = Math.min(unit.ammo + ammoGain, unit.type.ammoCapacity);
}
});
Expand Down

0 comments on commit 0a99736

Please sign in to comment.