Unable to Get Block Entity in PacketSender on Server Side #3651
-
DescriptionI am trying to use PacketSender to send a Block Entity to the client. I am creating a public static void handle method inside the server side. I am using the getWorld method to get the ServerPlayerEntity and then using the getBlockEntity method to get the Block Entity, but it returns null.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Now I can fix that issue. We need to getChunk method before using getBlockEntity. The BlockEntity will then display its value. |
Beta Was this translation helpful? Give feedback.
Now I can fix that issue. We need to getChunk method before using getBlockEntity. The BlockEntity will then display its value.