Skip to content

Commit

Permalink
[#85] Add support for enterable Roller.
Browse files Browse the repository at this point in the history
  • Loading branch information
stijnwop committed Sep 13, 2020
1 parent b9dc989 commit fad671c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ManualAttach.lua
Original file line number Diff line number Diff line change
Expand Up @@ -684,8 +684,12 @@ function ManualAttach.installSpecializations(vehicleTypeManager, specializationM

if SpecializationUtil.hasSpecialization(ConnectionHoses, typeEntry.specializations)
and SpecializationUtil.hasSpecialization(Attachable, typeEntry.specializations) then

--Todo: needs some better thought for enterable attachments in the future.
if SpecializationUtil.hasSpecialization(Enterable, typeEntry.specializations) and
(SpecializationUtil.hasSpecialization(LogGrab, typeEntry.specializations) or SpecializationUtil.hasSpecialization(BaleLoader, typeEntry.specializations)) then
(SpecializationUtil.hasSpecialization(LogGrab, typeEntry.specializations)
or SpecializationUtil.hasSpecialization(BaleLoader, typeEntry.specializations)
or SpecializationUtil.hasSpecialization(Roller, typeEntry.specializations)) then
vehicleTypeManager:addSpecialization(typeName, modName .. ".manualAttachConnectionHoses")
elseif not SpecializationUtil.hasSpecialization(Enterable, typeEntry.specializations) then
vehicleTypeManager:addSpecialization(typeName, modName .. ".manualAttachConnectionHoses")
Expand Down

0 comments on commit fad671c

Please sign in to comment.