Update EntityInv.cs

Thanks for balu for code assistance and testing.