Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
Squashed commit for v1.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
Bug1312 committed Nov 6, 2023
1 parent 79e66c1 commit b33efd5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@ org.gradle.daemon=false
minecraft_version = 1.16.5
forge_version = 36.2.30

version = 1.0.2
version = 1.0.3
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ public boolean canSurvive(BlockState state, IWorldReader world, BlockPos pos) {

@Override
public ActionResultType use(BlockState state, World world, BlockPos pos, PlayerEntity player, Hand hand, BlockRayTraceResult rayTraceResult) {
if (!world.isClientSide && hand == Hand.MAIN_HAND) {
if (!world.isClientSide() && hand == Hand.MAIN_HAND) {
Vector3d mouseVector = rayTraceResult.getLocation();
double mouseX = mouseVector.x() - pos.getX();
double mouseZ = mouseVector.z() - pos.getZ();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ private void setDoors(TardisTileEntity tardis, boolean open) {
}

public boolean toggleDoors(PlayerEntity player) {
if (this.level.dimension() == DMDimensions.TARDIS) {
if (this.level.isClientSide() || this.level.dimension() == DMDimensions.TARDIS) {
TardisData data = DMTardis.getTardisFromInteriorPos(this.getBlockPos());
if (data != null) {
if (data.isLocked()) {
Expand Down Expand Up @@ -69,7 +69,7 @@ public boolean toggleDoors(PlayerEntity player) {
}

public boolean toggleLocks(PlayerEntity player) {
if (this.level.dimension() == DMDimensions.TARDIS) {
if (this.level.isClientSide() || this.level.dimension() == DMDimensions.TARDIS) {
TardisData data = DMTardis.getTardisFromInteriorPos(this.getBlockPos());
if (data != null) {
data.setLocked(!data.isLocked());
Expand Down Expand Up @@ -100,7 +100,7 @@ public boolean toggleLocks(PlayerEntity player) {

@Override
public void tick() {
if (this.level.dimension() != DMDimensions.TARDIS) return;
if (this.level.isClientSide() || this.level.dimension() != DMDimensions.TARDIS) return;
TardisData data = DMTardis.getTardisFromInteriorPos(this.getBlockPos());
if (data == null) return;

Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/META-INF/mods.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ license="LGPL-3.0-only"
issueTrackerURL="https://github.com/Bug1312/dm_door_panel/issues"
[[mods]]
modId="dm_door_panel"
version="1.0.2"
version="1.0.3"
displayName="DM Door Panel Addon"
displayURL="https://github.com/Bug1312/dm_door_panel"
credits="Bug1312, ranafangirl"
Expand Down

0 comments on commit b33efd5

Please sign in to comment.