mirror of
https://github.com/wiremod/advdupe2.git
synced 2025-03-04 03:03:05 -05:00
Fix a pasting bug (#476)
This commit is contained in:
parent
3092b77b7a
commit
0ff4d3046c
@ -1163,7 +1163,10 @@ function AdvDupe2.duplicator.Paste(Player, EntityList, ConstraintList, Position,
|
||||
print("AD2 PostEntityPaste Error: " .. tostring(valid))
|
||||
end
|
||||
end
|
||||
v:GetPhysicsObject():EnableMotion(false)
|
||||
|
||||
if IsValid(v:GetPhysicsObject()) then
|
||||
v:GetPhysicsObject():EnableMotion(false)
|
||||
end
|
||||
|
||||
if (EntityList[_].BuildDupeInfo.DupeParentID and Parenting) then
|
||||
v:SetParent(CreatedEntities[EntityList[_].BuildDupeInfo.DupeParentID])
|
||||
@ -1185,7 +1188,10 @@ function AdvDupe2.duplicator.Paste(Player, EntityList, ConstraintList, Position,
|
||||
print("AD2 PostEntityPaste Error: " .. tostring(valid))
|
||||
end
|
||||
end
|
||||
v:GetPhysicsObject():EnableMotion(false)
|
||||
|
||||
if IsValid(v:GetPhysicsObject()) then
|
||||
v:GetPhysicsObject():EnableMotion(false)
|
||||
end
|
||||
|
||||
if (EntityList[_].BuildDupeInfo.DupeParentID and Parenting) then
|
||||
v:SetParent(CreatedEntities[EntityList[_].BuildDupeInfo.DupeParentID])
|
||||
|
Loading…
Reference in New Issue
Block a user