From b886b4b7ff2dee7937784932197322a7cf6cd65a Mon Sep 17 00:00:00 2001 From: TwistedAsylumMC Date: Wed, 28 Aug 2024 13:46:56 +0100 Subject: [PATCH] block/hash.go: Regenerate hashes --- server/block/hash.go | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/server/block/hash.go b/server/block/hash.go index 651923655..7aafb09ef 100644 --- a/server/block/hash.go +++ b/server/block/hash.go @@ -83,6 +83,7 @@ const ( hashGrindstone hashHayBale hashHoneycomb + hashHopper hashInvisibleBedrock hashIron hashIronBars @@ -497,6 +498,10 @@ func (Honeycomb) BaseHash() uint64 { return hashHoneycomb } +func (Hopper) BaseHash() uint64 { + return hashHopper +} + func (InvisibleBedrock) BaseHash() uint64 { return hashInvisibleBedrock } @@ -1169,6 +1174,10 @@ func (Honeycomb) Hash() uint64 { return 0 } +func (h Hopper) Hash() uint64 { + return uint64(h.Facing) | uint64(boolByte(h.Powered))<<3 +} + func (InvisibleBedrock) Hash() uint64 { return 0 }