mirror of
https://github.com/Melledy/Grasscutter.git
synced 2024-11-29 07:07:05 +00:00
two small activity/event fixes
* fixed GetAcitivityInfoReq proto * added draft to gadget Scene gatget, to let the client know the propper minigame for some entities
This commit is contained in:
parent
59a412cc83
commit
938b54c2ee
@ -219,6 +219,7 @@ public class EntityGadget extends EntityBaseGadget {
|
|||||||
.setConfigId(this.getConfigId())
|
.setConfigId(this.getConfigId())
|
||||||
.setGadgetState(this.getState())
|
.setGadgetState(this.getState())
|
||||||
.setIsEnableInteract(true)
|
.setIsEnableInteract(true)
|
||||||
|
.setDraftId(this.metaGadget.draft_id)
|
||||||
.setAuthorityPeerId(this.getScene().getWorld().getHostPeerId());
|
.setAuthorityPeerId(this.getScene().getWorld().getHostPeerId());
|
||||||
|
|
||||||
if (this.getContent() != null) {
|
if (this.getContent() != null) {
|
||||||
|
@ -12,6 +12,7 @@ public class SceneGadget extends SceneObject{
|
|||||||
public SceneBossChest boss_chest;
|
public SceneBossChest boss_chest;
|
||||||
public int interact_id;
|
public int interact_id;
|
||||||
public boolean isOneoff;
|
public boolean isOneoff;
|
||||||
|
public int draft_id;
|
||||||
|
|
||||||
public void setIsOneoff(boolean isOneoff){
|
public void setIsOneoff(boolean isOneoff){
|
||||||
this.isOneoff = isOneoff;
|
this.isOneoff = isOneoff;
|
||||||
|
Loading…
Reference in New Issue
Block a user