Bulldozer

by ckhawks

Bulldozer for tearing up your base

Utilities
6 years ago
0.13 - 0.15
7

b Problems with surfaces and bulldozing certain entities (solution offered)

6 years ago

I've found two bugs. I have fixes for both here: https://github.com/Eylrid/Bulldozer

Surfaces:
The bulldozer doesn't work right with mods that change the surface (factorissimo and surfaces remake). It always removes entities from the default surface (Nauvis) even when you are on another surface. I fixed it by using the surface the driver is on.

Entities that give items with different names:
Some entities give items with different names. This is the case for curved rails, which was added to the code as a special exception. Mods can add other entities with the same problem. Examples: Bottleneck adds the bottleneck-stoplight entity, which gives nothing. Surfaces remake has underground-wall that gives stone.

I fixed it by using the mining products from the prototype (entity.prototype.mineable_properties.products) rather than the entity name. This way the bulldozer will work correctly with entities added by any mod.

New response