Skip to content

Commit

Permalink
Prevent null pointer with sitting
Browse files Browse the repository at this point in the history
  • Loading branch information
maxanier committed Nov 1, 2022
1 parent b6d531a commit a48aa26
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/de/teamlapen/vampirism/sit/SitUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public class SitUtil {
* @return true if the entity was added, false otherwhise. This is always false on the client.
*/
public static boolean addSitEntity(World world, BlockPos blockPos, SitEntity entity, BlockPos playerPos) {
if (!world.isClientSide) {
if (!world.isClientSide && playerPos != null) {
ResourceLocation id = getDimensionTypeId(world);

if (!OCCUPIED.containsKey(id))
Expand Down

0 comments on commit a48aa26

Please sign in to comment.