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:
co-authored by
Tiger Wang
parent
23021dd828
commit
a9031b6bae
+13
-1
@@ -7,7 +7,7 @@
|
||||
|
||||
|
||||
|
||||
class cBlockOreHandler:
|
||||
class cBlockOreHandler :
|
||||
public cBlockHandler
|
||||
{
|
||||
using Super = cBlockHandler;
|
||||
@@ -16,6 +16,10 @@ public:
|
||||
|
||||
using Super::Super;
|
||||
|
||||
protected:
|
||||
|
||||
~cBlockOreHandler() = default;
|
||||
|
||||
private:
|
||||
|
||||
virtual cItems ConvertToPickups(NIBBLETYPE a_BlockMeta, const cEntity * a_Digger, const cItem * a_Tool) const override
|
||||
@@ -124,3 +128,11 @@ private:
|
||||
|
||||
|
||||
|
||||
|
||||
class cDefaultOreHandler final :
|
||||
public cBlockOreHandler
|
||||
{
|
||||
public:
|
||||
|
||||
using cBlockOreHandler::cBlockOreHandler;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user