From 5b942e188f44296496d07b4e12996f2361960215 Mon Sep 17 00:00:00 2001 From: direwolf420 Date: Sun, 24 Nov 2019 17:38:51 +0100 Subject: [PATCH] height/width fix --- UI/HistoryBookUI.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/UI/HistoryBookUI.cs b/UI/HistoryBookUI.cs index aaeb05e..01885ad 100644 --- a/UI/HistoryBookUI.cs +++ b/UI/HistoryBookUI.cs @@ -237,8 +237,9 @@ public override void Update(GameTime gameTime) { DrawAnimation drawAnim = Main.itemAnimations[itemModel.ItemType]; if (drawAnim != null) { - height /= drawAnim.FrameCount; sourceRect = drawAnim.GetFrame(texture); + height = sourceRect.Height; + width = sourceRect.Width; } else { sourceRect = texture.Bounds;