fix: FlippableAttribute with empty list will crash the client (#1563)

This commit is contained in:
Eric Vintimilla 2023-10-23 13:38:47 -04:00 committed by GitHub
parent 4d8e9fc515
commit a4e2226a5c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -59,7 +59,7 @@ public class FlippableAttribute : Attribute
public virtual void Flip(Item item)
{
if (ItemIDs == null)
if (ItemIDs == null || ItemIDs.Length == 0)
{
try
{