Skip to content

Commit

Permalink
Fix teleport CCE (#1154)
Browse files Browse the repository at this point in the history
  • Loading branch information
IzzelAliz committed Jan 6, 2024
1 parent af31abc commit 99659f1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,7 @@ public ServerPlayer respawn(ServerPlayer entityplayer, boolean flag, PlayerRespa

public ServerPlayer respawn(ServerPlayer playerIn, ServerLevel worldIn, boolean flag, Location location, boolean avoidSuffocation, PlayerRespawnEvent.RespawnReason respawnReason) {
if (respawnReason == null && location != null) {
if (ForgeEventFactory.onTravelToDimension((ServerPlayer) (Object) this, worldIn.dimension())) {
if (ForgeEventFactory.onTravelToDimension(playerIn, worldIn.dimension())) {
return null;
}
}
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
allprojects {
group 'io.izzel.arclight'
version '1.0.0'
version '1.0.1-SNAPSHOT'

def getGitHash = { ->
def stdout = new ByteArrayOutputStream()
Expand Down

2 comments on commit 99659f1

@wop0911
Copy link

@wop0911 wop0911 commented on 99659f1 Jan 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be able to be added back to 1.20.2 versions?

@Mikalixar
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would this be able to be added back to 1.20.2 versions?

This would be great, as many mods are stabilizing on 1.20.2

Please sign in to comment.