Technic mod for Minetest
Go to file
Zefram db20250371 Fix laser discharging
Commit a6dae893d6 introduced per-version
charge cost for firing mining lasers, but applies this in addition to
the old fixed cost which it was meant to replace.  Fix by removing the
application of the fixed cost.

The same commit did successfully change the check for a laser having
sufficient charge to fire, so that's based purely on the variable cost.
As a consequence, firing a laser that has just enough charge to cover the
variable cost could cause its charge to go negative.  (For example, by
fully charging a Mk1 laser and then firing it until it empties, resulting
in a charge of -400.)  It turned out that set_RE_wear handled that badly,
producing an over-100% wear value that would wrap to a *low* wear value,
leading to the laser's wear bar looking as if it's fully charged.

To protect against silly wear values, make set_RE_wear clamp the wear
value to avoid wrapping.  Handle specially the case of a fully-discharged
tool, where there was desirable wrapping to zero.
2014-04-22 12:48:55 -04:00
concrete Partial rewrite 2013-09-17 16:37:56 -04:00
extranodes Update 0.4.6-0 2013-04-04 01:58:07 +02:00
technic Fix laser discharging 2014-04-22 12:48:55 -04:00
technic_chests Add translation support to technic_chests 2014-03-30 19:32:13 -04:00
technic_worldgen Remove duplicate ABM 2013-12-17 14:24:06 -05:00
wrench Add wrench serialization format version 2013-12-20 18:48:46 -05:00
.gitattributes upload 2012-08-21 07:18:33 +02:00
.gitignore deleted undesired backup file 2013-04-14 22:53:30 -04:00
README.md Make some headers smaller in the READMEs 2014-02-27 00:32:37 -05:00
modpack.txt cleanup phase2 2013-01-27 14:03:47 +01:00

README.md

Technic

Credits for contributing to the project (in alphabetical order):

  • kpoppel
  • Nekogloop
  • Nore/Novatux
  • ShadowNinja
  • VanessaE
  • And many others...

FAQ

  1. My technic circuit doesn't work. No power is distrubuted.
  • A: Make sure you have a switching station connected.

License

See mod folders for their licences