Skip to content

Commit

Permalink
Bump version to 0.5.31: hotfix for area.allow_spawn wrongly applied o…
Browse files Browse the repository at this point in the history
…n client
  • Loading branch information
3TUSK committed Aug 2, 2022
1 parent 3afae34 commit e16b104
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ apply plugin: 'eclipse'
apply plugin: 'maven-publish'
apply plugin: 'org.spongepowered.mixin'

version = '0.5.30'
version = '0.5.31'
group = 'org.teacon'
archivesBaseName = 'AreaControl-Forge-1.18'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public static void onCheckSpawn(EntityJoinWorldEvent event) {
// 2. No operations here is modifying underlying states of any objects, unless
// someone is overriding Entity.blockPosition (m_142538_).
// Further, AreaManager.findBy is synchronized.
if (!event.loadedFromDisk()) {
if (!event.loadedFromDisk() && !event.getWorld().isClientSide()) {
final var entityInQuestion = event.getEntity();
if (entityInQuestion instanceof Player) {
return;
Expand Down

0 comments on commit e16b104

Please sign in to comment.