Skip to content

Commit

Permalink
Fix for large rugs being eaten
Browse files Browse the repository at this point in the history
  • Loading branch information
holy-the-sea committed Apr 28, 2023
1 parent b724986 commit 1fde2cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/furniture.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
"Type": value["Type"],
"Width": value["Width"],
"Height": value["Height"],
"Rotations": value["Rotations"]
}
for key, value in furniture_objects_info.items()
}
Expand Down Expand Up @@ -244,7 +245,7 @@ def convert_furniture(
im_mod = background
im_cropped_mod = im_mod.crop((X, Y, X_right, Y_bottom))

if values["Type"] == "rug":
if values["Type"] == "rug" and values["Rotations"] != "1":
im_cropped_vanilla = merge_rug_sprites(im_cropped_vanilla)
im_cropped_mod = merge_rug_sprites(im_cropped_mod)
elif object_name == "Large Brown Couch":
Expand Down

0 comments on commit 1fde2cc

Please sign in to comment.