Merge remote-tracking branch 'origin/master'

This commit is contained in:
Anuken
2023-02-01 15:20:38 -05:00
4 changed files with 51 additions and 57 deletions

View File

@@ -1173,6 +1173,7 @@ public class Mods implements Loadable{
//removes all colors
public void cleanup(){
if(name != null) name = Strings.stripColors(name);
if(displayName != null) displayName = Strings.stripColors(displayName);
if(author != null) author = Strings.stripColors(author);
if(description != null) description = Strings.stripColors(description);

View File

@@ -82,17 +82,6 @@ public class ItemTurret extends Turret{
}
public class ItemTurretBuild extends TurretBuild{
@Override
public void onProximityAdded(){
super.onProximityAdded();
//add first ammo item to cheaty blocks so they can shoot properly
if(cheating() && ammoTypes.size > 0){
handleItem(this, ammoTypes.entries().next().key);
}
}
@Override
public void updateTile(){
unit.ammo((float)unit.type().ammoCapacity * totalAmmo / maxAmmo);