Fix cmake not adding Werror on clang, and _lots_ of warnings (#4963)
* Fix cmake not adding Werror on clang, and _lots_ of warnings * WIP: Build fixes * Cannot make intermediate blockhandler instance * Tiger's changes * Fix BitIndex check * Handle invalid NextState values in cMultiVersionProtocol Co-authored-by: Tiger Wang <ziwei.tiger@outlook.com>
This commit is contained in:
@@ -1450,7 +1450,7 @@ OwnedBlockEntity cWSSAnvil::LoadNoteBlockFromNBT(const cParsedNBT & a_NBT, int a
|
||||
int note = a_NBT.FindChildByName(a_TagIdx, "note");
|
||||
if (note >= 0)
|
||||
{
|
||||
NoteBlock->SetNote(static_cast<char>(a_NBT.GetByte(note)));
|
||||
NoteBlock->SetNote(a_NBT.GetByte(note));
|
||||
}
|
||||
return NoteBlock;
|
||||
}
|
||||
@@ -1856,7 +1856,7 @@ void cWSSAnvil::LoadTNTFromNBT(cEntityList & a_Entities, const cParsedNBT & a_NB
|
||||
int FuseTicks = a_NBT.FindChildByName(a_TagIdx, "Fuse");
|
||||
if (FuseTicks > 0)
|
||||
{
|
||||
TNT->SetFuseTicks(static_cast<int>(a_NBT.GetByte(FuseTicks)));
|
||||
TNT->SetFuseTicks(a_NBT.GetByte(FuseTicks));
|
||||
}
|
||||
|
||||
a_Entities.emplace_back(std::move(TNT));
|
||||
|
||||
Reference in New Issue
Block a user