Skip to content

Commit

Permalink
Cuttout -> cutout
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaming32 committed Jun 4, 2023
1 parent 948043b commit eee3b59
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public void tick() {
return;
}
this.makeBoundingBox();
this.calculateCuttoutBox();
this.calculateCutoutBox();
if (!this.level.isClientSide)
((ServerLevel)(this.level)).setChunkForced(chunkPosition().x, chunkPosition().z, true);

Expand Down Expand Up @@ -360,7 +360,7 @@ public void syncRotations() {
this.setBoundingBox(NULL_BOX);
this.setCutoutBoundingBox(NULL_BOX);
this.makeBoundingBox();
this.calculateCuttoutBox();
this.calculateCutoutBox();
}

@NotNull
Expand All @@ -387,8 +387,7 @@ protected AABB makeBoundingBox() {
return portalBox;
}


public AABB calculateCuttoutBox() {
public AABB calculateCutoutBox() {
if (getAxisW().isEmpty()) {
setCutoutBoundingBox(NULL_BOX);
return NULL_BOX;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public void tick(CallbackInfo ci) {
VoxelShape omittedDirections = Shapes.empty();

for (ExperimentalPortal portal : list) {
if (portal.calculateCuttoutBox() != NULL_BOX && portal.calculateBoundsCheckBox() != NULL_BOX) {
if (portal.calculateCutoutBox() != NULL_BOX && portal.calculateBoundsCheckBox() != NULL_BOX) {
if (portal.getActive())
omittedDirections = Shapes.or(omittedDirections, Shapes.create(portal.getCutoutBoundingBox()));
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package com.fusionflux.portalcubed.mixin;

import com.fusionflux.portalcubed.PortalCubedConfig;
import com.fusionflux.portalcubed.PortalCubedGameRules;
import com.fusionflux.portalcubed.accessor.CalledValues;
import com.fusionflux.portalcubed.blocks.PortalCubedBlocks;
import com.fusionflux.portalcubed.client.MixinPCClientAccessor;
import com.fusionflux.portalcubed.client.PortalCubedClient;
import com.fusionflux.portalcubed.PortalCubedConfig;
import com.fusionflux.portalcubed.entity.EntityAttachments;
import com.fusionflux.portalcubed.entity.ExperimentalPortal;
import com.fusionflux.portalcubed.items.PortalCubedItems;
Expand Down Expand Up @@ -133,7 +133,7 @@ public void tickHead(CallbackInfo ci) {
VoxelShape omittedDirections = Shapes.empty();

for (ExperimentalPortal portal : list) {
if (portal.calculateCuttoutBox() != NULL_BOX) {
if (portal.calculateCutoutBox() != NULL_BOX) {
if (portal.getActive())
omittedDirections = Shapes.or(omittedDirections, Shapes.create(portal.getCutoutBoundingBox()));
}
Expand Down

0 comments on commit eee3b59

Please sign in to comment.