Skip to content

Commit

Permalink
fix hasBlockEntity
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan-1F committed Jan 24, 2022
1 parent 749965d commit 83720b1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ org.gradle.jvmargs=-Xmx1G
loader_version=0.10.8

# Mod Properties
mod_version = 1.0.0
mod_version = 1.1.0
maven_group = gatewayer
archives_base_name = gatewayer

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/me/ivan/gatewayer/utils/GatewayInfo.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public Block getBlock() {

public boolean hasBlockEntity() {
if (!this.isEnabled()) return false;
return this.getBlock().hasBlockEntity();
return this.getWorld().getBlockEntity(this.getPos()) != null;
}

public EndGatewayBlockEntity getBlockEntity() {
Expand Down

0 comments on commit 83720b1

Please sign in to comment.