fix: Codegens BaseMulti, Container, and VirtualCheck (#1624)

This commit is contained in:
Kamron Batman 2023-12-02 13:00:02 -05:00 committed by GitHub
parent 4ebdc75bdf
commit e21ff0eb28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 192 additions and 298 deletions

View file

@ -280,7 +280,10 @@ public class GenericEntityPersistence<T> : Persistence, IGenericEntityPersistenc
{
switch (World.WorldState)
{
default: return null;
default:
{
return null;
}
case WorldState.Loading:
case WorldState.Saving:
case WorldState.WritingSave:

View file

@ -133,7 +133,10 @@ public interface IGenericWriter
{
switch (sizeof(T))
{
default: throw new ArgumentException($"Argument of type {typeof(T)} is not a normal enum");
default:
{
throw new ArgumentException($"Argument of type {typeof(T)} is not a normal enum");
}
case 1:
{
Write(*(byte*)&value);