f6c53af
Branches > facts > f6c53af > files / src / net / bowmap
Add fluid count to chunk data
Commit: f6c53afc6fa4768d9a9d9c68dce1c375a9c51c1c
Parent: c343435
2 changed files:
src/net/bowmap/network/handle.clj view file
@@ -99,11 +99,13 @@ (let [pk {::pk/id ::clientbound/chunk-data-and-update-light :chunk-data (let [stone {:block-count (* 16 16 16)+ :fluid-count 0 :block-states {:bpe 0 :palatte 1} :biomes {:bpe 0 :palatte 0}} air {:block-count 0+ :fluid-count 0 :block-states {:bpe 0 :palatte 0} :biomes {:bpe 0@@ -119,9 +121,9 @@ (defmethod handler ::serverbound/finish-config [client a pk] (send a client/send-clientbound-packet {::pk/id ::clientbound/login- ;; TODO magic zero :p+ ;; TODO magic one :p ;; I think you can keep a registry of entity ids and stick this on the client- :entity-id 0+ :entity-id 1 :hardcore? false :dimension-names ["world"] :max-players 1000 ; TODO extract :psrc/net/bowmap/network/packets/writers.clj view file
@@ -255,6 +255,7 @@ (def chunk-section-> (table-> [:block-count short->+ :fluid-count short-> :block-states palatted-container-> :biomes palatted-container->]))